GHSA-x4hg-hfwf-p9mw: @asymmetric-effort/nogginlessdom vulnerable to ReDoS via user-controlled regex in HTMLInputElement pattern validation
The @asymmetric-effort/nogginlessdom package versions prior to 0.0.22 contain a vulnerability in the HTMLInputElement.checkValidity() method. This method constructs a regular expression directly from the user-controlled pattern property without sanitization or timeout protection, enabling a Regular Expression Denial of Service (ReDoS) attack via catastrophic backtracking. The issue was fixed by adding a pattern length limit and nested quantifier detection to reject unsafe patterns before regex construction.
AI Analysis
Technical Summary
The vulnerability arises because HTMLInputElement.checkValidity() uses the user-supplied pattern property to create a RegExp object without any validation or safeguards. Attackers can supply regex patterns with nested quantifiers that cause catastrophic backtracking, freezing the event loop and resulting in denial of service. The fix, committed on the main branch, introduces a maximum pattern length of 1024 characters and detects nested quantifiers to reject unsafe patterns, treating them as non-matching to prevent ReDoS.
Potential Impact
An attacker can cause the application to freeze or become unresponsive by supplying malicious regex patterns that trigger catastrophic backtracking during input validation. This results in denial of service affecting availability. There is no indication of privilege escalation, data disclosure, or code execution from this vulnerability.
Mitigation Recommendations
A fix is available in versions 0.0.22 and later of @asymmetric-effort/nogginlessdom. The fix includes limiting the pattern length and rejecting patterns with nested quantifiers before regex construction. Users should upgrade to version 0.0.22 or later to mitigate this vulnerability.
GHSA-x4hg-hfwf-p9mw: @asymmetric-effort/nogginlessdom vulnerable to ReDoS via user-controlled regex in HTMLInputElement pattern validation
Description
The @asymmetric-effort/nogginlessdom package versions prior to 0.0.22 contain a vulnerability in the HTMLInputElement.checkValidity() method. This method constructs a regular expression directly from the user-controlled pattern property without sanitization or timeout protection, enabling a Regular Expression Denial of Service (ReDoS) attack via catastrophic backtracking. The issue was fixed by adding a pattern length limit and nested quantifier detection to reject unsafe patterns before regex construction.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because HTMLInputElement.checkValidity() uses the user-supplied pattern property to create a RegExp object without any validation or safeguards. Attackers can supply regex patterns with nested quantifiers that cause catastrophic backtracking, freezing the event loop and resulting in denial of service. The fix, committed on the main branch, introduces a maximum pattern length of 1024 characters and detects nested quantifiers to reject unsafe patterns, treating them as non-matching to prevent ReDoS.
Potential Impact
An attacker can cause the application to freeze or become unresponsive by supplying malicious regex patterns that trigger catastrophic backtracking during input validation. This results in denial of service affecting availability. There is no indication of privilege escalation, data disclosure, or code execution from this vulnerability.
Mitigation Recommendations
A fix is available in versions 0.0.22 and later of @asymmetric-effort/nogginlessdom. The fix includes limiting the pattern length and rejecting patterns with nested quantifiers before regex construction. Users should upgrade to version 0.0.22 or later to mitigate this vulnerability.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-x4hg-hfwf-p9mw
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a46ecb327e9c7971943c636
Added to database: 07/02/2026, 22:56:51 UTC
Last enriched: 07/02/2026, 23:09:02 UTC
Last updated: 07/02/2026, 23:09:02 UTC
Views: 2
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.
External Links
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.