SecurityContext

CVE-2026-6827: justhtml - Stored XSS

  • Cve: CVE-2026-6827
  • Name: justhtml - Stored XSS
  • Description: justhtml before 1.17.0 contains multiple security issues in sanitization, serialization, and programmatic DOM handling. When custom policies preserve foreign namespaces (SVG/MathML), dangerous content such as HTML integration points (SVG <foreignObject>, MathML <annotation-xml encoding="text/html">) and mutation-XSS parser-differential payloads could survive sanitization and become active HTML after reparse; SVG filter="url(...)" and preserved <style> could leave resource-loading CSS (@import, background-image:url()). Programmatic script/style/Comment nodes could serialize into active markup. Additional hardening fixes address sanitize-pipeline cache mutation and DOM parent/child cycles that could cause infinite loops. Most issues affect advanced or custom configurations rather than the default JustHTML(..., sanitize=True) safe path.
  • Impact: Attackers can execute malicious scripts or load harmful resources, potentially leading to cross-site scripting and resource abuse.
  • Remediation: Update to version 1.17.0 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec, information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00261
  • Epss percentile: 0.18028
  • Assignee: [email protected]
  • Published at: 2026-08-23T14:16:53Z
  • Age in days: 93
  • Modified at: 2026-10-12T16:10:00Z
  • References total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-6827
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

UrlSourceTags
https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-vrx2-77f2-ww34nvd
https://www.vulncheck.com/advisories/justhtml-before-multiple-cross-site-scripting-vulnerabilitiesnvd

Projects

RepositoryLink kindsIndexedUrl
EmilStenstrom/justhtmlsecurity_advisoryyes/v1/repositories/EmilStenstrom/justhtml

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts