Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-x4hg-hfwf-p9mw: @asymmetric-effort/nogginlessdom vulnerable to ReDoS via user-controlled regex in HTMLInputElement pattern validation

0
Medium
Published: 07/02/2026 (07/02/2026, 20:20:04 UTC)
Source: GCVE Database
Product: @asymmetric-effort/nogginlessdom

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Affected software

npmghsa
@asymmetric-effort/nogginlessdom
Affected versions
<0.0.22

Run 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

AILast updated: 07/02/2026, 23:09:02 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses