{"answers":{"affected":"2 open source packages ship an affected version, including @asymmetric-effort/nogginlessdom.","exploited":"There is no known exploitation of GHSA-x4hg-hfwf-p9mw in the wild and no public exploit code.","fix":"Upgrade @asymmetric-effort/nogginlessdom to 0.0.22 or later.","what":"GHSA-x4hg-hfwf-p9mw is a denial of service vulnerability in @asymmetric-effort/nogginlessdom, published on 2 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-x4hg-hfwf-p9mw and fix it if it is affected.\n\nWhat it is: GHSA-x4hg-hfwf-p9mw is a denial of service vulnerability in @asymmetric-effort/nogginlessdom, published on 2 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-x4hg-hfwf-p9mw in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @asymmetric-effort/nogginlessdom (npm): affected all versions; fixed in 0.0.22\n- @asymmetric-effort/nogginlessdom (npm): affected all versions; fixed in 0.0.22\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-x4hg-hfwf-p9mw/ (Markdown: https://insights.sbomify.com/GHSA-x4hg-hfwf-p9mw/index.md)","id":"GHSA-x4hg-hfwf-p9mw","markdown":"https://insights.sbomify.com/GHSA-x4hg-hfwf-p9mw/index.md","name":"GHSA-x4hg-hfwf-p9mw","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript DOM library","requires_auth":"none","summary":"Attackers can cause denial of service by injecting malicious regex patterns into HTML input validation, freezing the application event loop.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"## 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)","ecosystems":["npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"@asymmetric-effort/nogginlessdom vulnerable to ReDoS via user-controlled regex in HTMLInputElement pattern validation","id":"GHSA-x4hg-hfwf-p9mw","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["0.0.22"],"introduced":["0"],"last_affected":[],"package":"@asymmetric-effort/nogginlessdom","purl":null,"source":"GHSA-x4hg-hfwf-p9mw"},{"ecosystem":"npm","fixed":["0.0.22"],"introduced":["0"],"last_affected":[],"package":"@asymmetric-effort/nogginlessdom","purl":"pkg:npm/%40asymmetric-effort/nogginlessdom","source":"GHSA-x4hg-hfwf-p9mw"}],"products":null,"published":"2026-07-02","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can cause denial of service by injecting malicious regex patterns into HTML input validation, freezing the application event loop.","url":"https://insights.sbomify.com/GHSA-x4hg-hfwf-p9mw/"}