# CVE-2026-4671: justhtml before 1.18.0 Denial of Service via CSS Selector

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 46% of CVEs (2026-11-30)
- Published: 2026-05-08T18:19:30.000Z
- Modified: 2026-10-12T16:10:00.220Z
- Also known as: GHSA-r8cj-3554-33mr
- Weaknesses: CWE-400, CWE-407, CWE-835
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

justhtml before 1.18.0 contains multiple low-severity denial-of-service issues in CSS selector handling and linkification. Applications that evaluate attacker-controlled selector strings (via query(), matches(), or selector-based transforms), run selector matching over very large untrusted documents, construct DOM trees from untrusted structure, or enable linkification over attacker-controlled text may consume disproportionate CPU or memory. Triggers include oversized selectors, large selector lists, oversized compound selectors, long combinator chains, deeply nested functional pseudo-classes, repeated token/positional matching, cyclic DOM graphs causing non-terminating traversal, and punctuation-heavy or trailing-bracket linkification input. These are availability-only concerns and do not by themselves allow script execution, data disclosure, or sanitizer bypass. Default JustHTML(sanitize=True) usage is not expected to be exposed, since selectors are normally supplied by application code.

(As written by CVE List.)

## Affected

- EmilStenstrom justhtml: before 1.18.0 (not affected: 1.18.0)
- justhtml (PyPI): before 1.18.0

## Every score

- VulnCheck: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: rating Low

## References

- <https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-r8cj-3554-33mr> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/justhtml-before-denial-of-service-via-css-selector> (third-party-advisory)
- <https://github.com/EmilStenstrom/justhtml> (package)

## Sources

- CVE List: [CVE-2026-4671](https://www.cve.org/CVERecord?id=CVE-2026-4671), CVE Terms of Use, modified 2026-08-24
- GitHub Advisory Database: [GHSA-r8cj-3554-33mr](https://github.com/advisories/GHSA-r8cj-3554-33mr), CC-BY-4.0, modified 2026-08-24
- NVD: [CVE-2026-4671](https://nvd.nist.gov/vuln/detail/CVE-2026-4671), Public domain, modified 2026-10-12

---

Page: https://cve.day/CVE-2026-4671 · Whole record: https://cve.day/CVE-2026-4671.json · Rebuilt by cve.day 2026-11-25T22:59:34.966Z
