mediumVulnerability

GHSA-x4hg-hfwf-p9mw

## Summary The `HTMLInputElement.checkValidity()` method constructed a `RegExp` directly from the user-controlled `pattern` property without any sanitization or timeout protection. This allowed an attacker to inject a regex with catastrophic backtracking, freezing the event loop. ## Fix Fixed in commit https://github.com/asymmetric-effort/NogginLessDom/commit/25a3cbac665fae5663f8b71c073b80c3152dbe7b on `main`. Added: - Pattern length limit (1024 characters) - Nested quantifier detection (`hasNestedQuantifiers`) that rejects patterns like `(a+)+` before constructing the regex - Patterns exceeding limits are treated as non-matching (safe default)

Properties

ghsa_id
GHSA-x4hg-hfwf-p9mw
severity
medium
summary
@asymmetric-effort/nogginlessdom vulnerable to ReDoS via user-controlled regex in HTMLInputElement pattern validation
cve_id
GHSA-x4hg-hfwf-p9mw
is_ghsa_only
true
ghsa_published
2026-07-02T20:20:04Z
source_url
https://github.com/advisories/GHSA-x4hg-hfwf-p9mw
ghsa_updated
2026-07-02T20:20:04Z

Related Entities (4)

REPORTED_BY (1)

[Source]GitHub Advisory Database

VULNERABLE_TO (1)

[Software]npm/@asymmetric-effort/nogginlessdom

AFFECTS (1)

[Software]npm/@asymmetric-effort/nogginlessdom

HAS_WEAKNESS (1)

[Weakness]Inefficient Regular Expression Complexity

Explore deeper with Ninja Signal's threat intelligence graph

GHSA-x4hg-hfwf-p9mw — Ninja Signal Threat Intelligence | Ninja Signal