CVE-2026-5388: justhtml - Stored XSS
- Cve: CVE-2026-5388
- Name: justhtml - Stored XSS
- Description: justhtml before 1.15.0 contains multiple security issues in URL sanitization helpers (clean_url_value/clean_url_in_js_string), HTML serialization, Markdown passthrough (html_passthrough=True), and several custom sanitization-policy edge cases. Depending on configuration, an attacker can bypass sanitization to inject active HTML and JavaScript — for example via encoded javascript: URLs, backslash-based relative URLs resolved as remote hosts, markup-breaking programmatic element/attribute names or HTML comments, raw </textarea> reintroduction through Markdown passthrough, or preserved <style>/<meta http-equiv=refresh>/<base href> tags in custom policies. Most custom-policy issues do not affect the default sanitize=True configuration; they primarily affect helper APIs, programmatic DOM construction, html_passthrough=True, and custom policies/transform pipelines.
- Impact: Attackers can inject active HTML and JavaScript, leading to client-side script execution and potential user compromise.
- Remediation: Update to version 1.15.0 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00587
- Epss percentile: 0.48988
- 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-5388
- 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
| Id | Name |
|---|---|
| CWE-20 | Improper Input Validation |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-c9vm-hv86-f23r | nvd | |
| https://www.vulncheck.com/advisories/justhtml-before-multiple-security-issues | nvd |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| EmilStenstrom/justhtml | security_advisory | yes | /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