GHSA-x4hg-hfwf-p9mw: @asymmetric effort/nogginlessdom Denial of Service Vulnerability
MODERATEGHSA-x4hg-hfwf-p9mw is a MODERATE denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting @asymmetric effort/nogginlessdom libraries in the npm ecosystem. The issue involves @asymmetric-effort/nogginlessdom vulnerable to redos via user-controlled regex in htmlinputelement pattern validation. Remediation is available by upgrading affected packages to version 0.0.22.
GHSA-x4hg-hfwf-p9mw at a Glance
How to Fix GHSA-x4hg-hfwf-p9mw
To remediate this vulnerability, upgrade all affected @asymmetric effort/nogginlessdom dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @asymmetric-effort/nogginlessdom@0.0.22
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @asymmetric-effort/nogginlessdom
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-x4hg-hfwf-p9mw, inspect your project dependencies using npm:
npm ls @asymmetric-effort/nogginlessdom
Analyze the terminal output to locate any version of @asymmetric effort/nogginlessdom in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.22), your application is affected.
Note: The npm ls @asymmetric-effort/nogginlessdom command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In @asymmetric effort/nogginlessdom, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-x4hg-hfwf-p9mw Affected @asymmetric effort/nogginlessdom Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@asymmetric-effort/nogginlessdom
|
npm |
< 0.0.22
|
0.0.22
|
References
Frequently Asked Questions
What is GHSA-x4hg-hfwf-p9mw?
Which @asymmetric effort/nogginlessdom versions are affected?
What version fixes GHSA-x4hg-hfwf-p9mw?
Is @asymmetric-effort/nogginlessdom affected?
What CWE is associated with GHSA-x4hg-hfwf-p9mw?
How can I check npm dependencies for GHSA-x4hg-hfwf-p9mw?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x4hg-hfwf-p9mw",
"modified" : "2026-07-02T20:20:04Z",
"published" : "2026-07-02T20:20:04Z",
"aliases" : [ ],
"summary" : "@asymmetric-effort/nogginlessdom vulnerable to ReDoS via user-controlled regex in HTMLInputElement pattern validation",
"details" : "## Summary\n\nThe `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.\n\n## Fix\n\nFixed in commit https://github.com/asymmetric-effort/NogginLessDom/commit/25a3cbac665fae5663f8b71c073b80c3152dbe7b on `main`. Added:\n- Pattern length limit (1024 characters)\n- Nested quantifier detection (`hasNestedQuantifiers`) that rejects patterns like `(a+)+` before constructing the regex\n- Patterns exceeding limits are treated as non-matching (safe default)",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@asymmetric-effort/nogginlessdom"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.22"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.0.21"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/asymmetric-effort/NogginLessDom/security/advisories/GHSA-x4hg-hfwf-p9mw"
}, {
"type" : "WEB",
"url" : "https://github.com/asymmetric-effort/NogginLessDom/commit/25a3cbac665fae5663f8b71c073b80c3152dbe7b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/asymmetric-effort/NogginLessDom"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-02T20:20:04Z",
"nvd_published_at" : null
}
}