Advisory

GHSA-p28h-cc7q-c4fg

Also known as: CVE-2022-21222

Summary

css-what vulnerable to ReDoS due to use of insecure regular expression

Details

The package css-what before 2.1.3 is vulnerable to Regular Expression Denial of Service (ReDoS) due to the use of insecure regular expression in the re_attr variable of index.js. The exploitation of this vulnerability could be triggered via the parse function.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-10-01 00:00 UTC
Modified
2025-05-20 21:02 UTC

Affected packages and fixes

css-what

npm · All systems

Affected

  • introduced 0, fixed 2.1.3 (semver)

Fixed versions

2.1.3

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences