CVE-2026-4671: Uncontrolled Resource Consumption in EmilStenstrom justhtml
Description
justhtml versions prior to 1.18.0 contain multiple low-severity denial-of-service vulnerabilities related to CSS selector handling and linkification. These issues can cause excessive CPU or memory consumption when processing attacker-controlled selectors or text, potentially impacting availability. The vulnerabilities do not enable script execution, data leakage, or sanitizer bypass. Default usage with sanitization enabled is not expected to be vulnerable since selectors are typically controlled by application code.
CVSS v4.0
Score 8.7high
Affected software
EmilStenstrom
justhtml
pkg:github/emilstenstrom/justhtmlRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-4671 describes multiple denial-of-service issues in EmilStenstrom justhtml before version 1.18.0. The vulnerabilities arise from uncontrolled resource consumption during CSS selector processing and linkification when attacker-controlled input is evaluated via query(), matches(), or selector-based transforms. Specific triggers include oversized or complex selectors, deeply nested pseudo-classes, cyclic DOM graphs causing infinite traversal, and punctuation-heavy linkification input. These issues affect availability only and do not allow code execution or data disclosure. The default configuration with sanitization enabled is not expected to expose these flaws.
Potential Impact
The impact is limited to denial-of-service conditions caused by excessive CPU or memory usage when processing crafted selectors or text. There is no impact on confidentiality, integrity, or code execution. Applications that evaluate untrusted selectors or construct DOM trees from untrusted sources are at risk of resource exhaustion, potentially leading to service disruption.
Mitigation Recommendations
No official patch or remediation level is currently documented. Users should avoid evaluating attacker-controlled selector strings or processing large untrusted documents with vulnerable justhtml versions. Using the default sanitization mode (sanitize=True) reduces exposure since selectors are normally application-controlled. Monitor vendor advisories for updates or patches. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-03-23T19:00:14.383Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a8afb27acd9273b49f5f71f
Added to database: 08/23/2026, 13:52:39 UTC
Last enriched: 09/10/2026, 13:07:14 UTC
Last updated: 10/06/2026, 18:48:22 UTC
Views: 68
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.