CVE-2026-5389
MEDIUM 5.1CVSS 4.0JustHTML is vulnerable to XSS via code fence breakout in <pre> content
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.
- Published
- 23 Aug 2026
- Last modified
- 12 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-79CWE-80
- Also known as
- GHSA-5vp3-3cg6-2rq3
- Sources
- NVDJSONOSV GHSA-5vp3-3cg6-2rq3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | MEDIUM 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 |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | justhtml | < 1.13.0 | 1.13.0 |
References
- https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-5vp3-3cg6-2rq3 · WEB
- https://www.vulncheck.com/advisories/justhtml-before-xss-via-code-fence-breakout
- https://github.com/EmilStenstrom/justhtml/commit/f35f8f723c713bd8f912d86e9ec6881275ff5af9 · WEB
- https://github.com/EmilStenstrom/justhtml · PACKAGE
- https://github.com/EmilStenstrom/justhtml/releases/tag/v1.13.0 · WEB
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 23 Aug 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Mar 2026)