Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. justhtml
  4. ›
  5. GHSA-r758-8hxw-4845

GHSA-r758-8hxw-4845: justhtml: Mutation XSS with custom foreign-namespace sanitization policies

April 8, 2026

A parser-differential / mutation XSS issue was found in justhtml when using a custom sanitization policy that preserves foreign namespaces such as SVG or MathML.

Under these custom settings, specially crafted input could sanitize into HTML that looked safe at first, but became unsafe when parsed again by a browser or another HTML parser.

References

  • github.com/EmilStenstrom/justhtml
  • github.com/EmilStenstrom/justhtml/commit/8adc4dfe31723dc522f44338f9bd98381c92b076
  • github.com/EmilStenstrom/justhtml/releases/tag/v1.14.0
  • github.com/EmilStenstrom/justhtml/security/advisories/GHSA-r758-8hxw-4845
  • github.com/advisories/GHSA-r758-8hxw-4845

Code Behaviors & Features

Detect and mitigate GHSA-r758-8hxw-4845 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.13.0 before 1.14.0

Fixed versions

  • 1.14.0

Solution

Upgrade to version 1.14.0 or above.

Impact 3.1 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/justhtml/GHSA-r758-8hxw-4845.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:06 +0000.