CVE-2026-6827: EmilStenstrom justhtml · Cross-site Scripting
Affects EmilStenstrom justhtmlSource CVE Database V5
Not known to be exploited · CVSS 5.1 Medium : upgrade to 1.17.0 when convenient.
Data as of 21 Nov 2026, 17:35 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 18% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.17.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 23 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 21 Nov 2026.
What to do
Upgrade justhtml and emilstenstrom/justhtml to 1.17.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| EmilStenstromjusthtml | Affected
| Fixed in
|
GitHubemilstenstrom/justhtmlpkg:github/emilstenstrom/justhtmlOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to justhtml version 1.17.0 or later, which includes fixes for these sanitization and serialization issues. Users employing default sanitization settings (JustHTML(..., sanitize=True)) are less likely to be affected. Review and avoid custom policies that preserve foreign namespaces unless necessary and ensure they are updated to the fixed version. Patch status is not explicitly confirmed in the input data; verify with the vendor advisory for the latest remediation guidance.
Description
CVE-2026-6827 is a medium severity cross-site scripting (XSS) vulnerability in EmilStenstrom justhtml versions before 1.17.0. It involves improper input neutralization during web page generation, particularly when custom sanitization policies preserve foreign namespaces like SVG and MathML. This can allow dangerous content such as SVG <foreignObject> and MathML <annotation-xml> elements to bypass sanitization and become active HTML after reparsing. Additional issues include resource-loading CSS via SVG filters and preserved <style> tags, as well as serialization of script/style/Comment nodes into active markup. These issues mainly affect advanced or custom configurations rather than the default safe sanitization path.