@asymmetric-effort/nogginlessdom
Affected
- introduced
0, fixed0.0.22(semver)
Fixed versions
0.0.22
Fix
- Fixed version
0.0.22npm install @asymmetric-effort/[email protected]
Advisory
Also known as: None
@asymmetric-effort/nogginlessdom vulnerable to ReDoS via user-controlled regex in HTMLInputElement pattern validation
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:
hasNestedQuantifiers) that rejects patterns like (a+)+ before constructing the regexMedium Basis: The source's own band: MODERATE
0, fixed 0.0.22 (semver)0.0.22
0.0.22npm install @asymmetric-effort/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0