{"id":"GHSA-x4hg-hfwf-p9mw","revision":"a43d1f3cd18c4bf1bd4073b416c881cb","records":[{"revision":"a43d1f3cd18c4bf1bd4073b416c881cb","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-x4hg-hfwf-p9mw","aliases":[],"title":"@asymmetric-effort/nogginlessdom vulnerable to ReDoS via user-controlled regex in HTMLInputElement pattern validation","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)","state":0,"publishedAt":"2026-07-02T20:20:04+00:00","modifiedAt":"2026-09-10T03:50:53.053867+00:00","affected":[{"ecosystem":"npm","name":"@asymmetric-effort/nogginlessdom","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.0.22"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/asymmetric-effort/NogginLessDom/security/advisories/GHSA-x4hg-hfwf-p9mw","https://github.com/asymmetric-effort/NogginLessDom/commit/25a3cbac665fae5663f8b71c073b80c3152dbe7b","https://github.com/asymmetric-effort/NogginLessDom"],"sourceUrl":"https://github.com/advisories/GHSA-x4hg-hfwf-p9mw","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-x4hg-hfwf-p9mw","identifiers":["GHSA-x4hg-hfwf-p9mw"]},"retained":false,"historicalAffected":[]}],"coverage":[]}