CVE-2026-5389 json
justhtml before 1.13.0 XSS via code fence breakout
published 2026-03-24 7 mo ago modified 2026-10-12 27 d ago also GHSA-5vp3-3cg6-2rq3 , EUVD-2026-64653
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 13%
- public exploits
- 0
- none known
Summary
justhtml versions before 1.13.0 contain a cross-site scripting vulnerability in the to_markdown() function when serializing attacker-controlled pre content. Attackers can place backticks inside sanitized pre elements to break out of fixed-length code fences, allowing raw HTML to execute when the generated Markdown is rendered by CommonMark or GFM-style renderers.
Patch / fix
- pypi justhtml 1.13.0
- EmilStenstrom justhtml 1.13.0
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 mo ago
Exploit prediction
0.23% chance of exploitation in the next 30 days, higher than 13% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-5vp3-3cg6-2rq3 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| CNA | 4.0 | 5.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | justhtml | <1.13.0 |
1.13.0 |
Affected products
- EmilStenstrom justhtml
Classification
References
-
github.com
/EmilStenstrom/justhtml/commit/f35f8f723c713bd8f912d86e9ec6881275ff5af9
web
-
github.com
/EmilStenstrom/justhtml/security/advisories/GHSA-5vp3-3cg6-2rq3
vendor-advisory, exploit, web
-
vulncheck.com
/advisories/justhtml-before-xss-via-code-fence-breakout
third-party-advisory
-
github.com
/EmilStenstrom/justhtml
package
-
github.com
/EmilStenstrom/justhtml/releases/tag/v1.13.0
web
Sources
- CVE List CVE-2026-5389
- GitHub Advisory GHSA-5vp3-3cg6-2rq3
- NVD CVE-2026-5389
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.