CVE-2026-4671: Uncontrolled Resource Consumption in EmilStenstrom justhtml
CVE-2026-4671 is a high-severity denial-of-service vulnerability in EmilStenstrom justhtml before version 1.18.0. It involves uncontrolled resource consumption triggered by maliciously crafted CSS selectors and linkification inputs. The issues arise when attacker-controlled selector strings are evaluated or when large or complex selectors are processed, potentially causing excessive CPU or memory use. This vulnerability affects availability only and does not enable script execution, data leakage, or bypass of sanitization. Default usage with sanitization enabled is not expected to be vulnerable since selectors are typically controlled by application code.
AI Analysis
Technical Summary
justhtml versions prior to 1.18.0 contain multiple low-severity denial-of-service issues related to CSS selector handling and linkification. When applications evaluate attacker-controlled selectors via query(), matches(), or selector-based transforms, or process large untrusted documents or linkify attacker-controlled text, they may experience disproportionate CPU or memory consumption. Triggers include oversized selectors, large selector lists, deeply nested pseudo-classes, cyclic DOM graphs causing infinite traversal, and punctuation-heavy linkification inputs. These issues impact availability but do not allow code execution, data disclosure, or sanitizer bypass. The vulnerability is rated with a CVSS 4.0 score of 8.7 (high severity).
Potential Impact
The vulnerability can cause denial-of-service conditions by exhausting CPU or memory resources when processing specially crafted selectors or linkification inputs. It does not lead to remote code execution, data leakage, or bypass of security controls. The impact is limited to availability degradation of applications using affected justhtml versions.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid evaluating untrusted or attacker-controlled selector strings or linkification inputs in justhtml. Use default JustHTML(sanitize=True) configurations where possible, as this reduces exposure. Monitor for updates from the vendor regarding patches or official fixes.
CVE-2026-4671: Uncontrolled Resource Consumption in EmilStenstrom justhtml
Description
CVE-2026-4671 is a high-severity denial-of-service vulnerability in EmilStenstrom justhtml before version 1.18.0. It involves uncontrolled resource consumption triggered by maliciously crafted CSS selectors and linkification inputs. The issues arise when attacker-controlled selector strings are evaluated or when large or complex selectors are processed, potentially causing excessive CPU or memory use. This vulnerability affects availability only and does not enable script execution, data leakage, or bypass of sanitization. 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
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
justhtml versions prior to 1.18.0 contain multiple low-severity denial-of-service issues related to CSS selector handling and linkification. When applications evaluate attacker-controlled selectors via query(), matches(), or selector-based transforms, or process large untrusted documents or linkify attacker-controlled text, they may experience disproportionate CPU or memory consumption. Triggers include oversized selectors, large selector lists, deeply nested pseudo-classes, cyclic DOM graphs causing infinite traversal, and punctuation-heavy linkification inputs. These issues impact availability but do not allow code execution, data disclosure, or sanitizer bypass. The vulnerability is rated with a CVSS 4.0 score of 8.7 (high severity).
Potential Impact
The vulnerability can cause denial-of-service conditions by exhausting CPU or memory resources when processing specially crafted selectors or linkification inputs. It does not lead to remote code execution, data leakage, or bypass of security controls. The impact is limited to availability degradation of applications using affected justhtml versions.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid evaluating untrusted or attacker-controlled selector strings or linkification inputs in justhtml. Use default JustHTML(sanitize=True) configurations where possible, as this reduces exposure. Monitor for updates from the vendor regarding patches or official fixes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-03-23T19:00:14.383Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8afb27acd9273b49f5f71f
Added to database: 08/23/2026, 13:52:39 UTC
Last enriched: 08/23/2026, 14:07:31 UTC
Last updated: 08/23/2026, 16:54:43 UTC
Views: 7
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.