Advisory

GHSA-pvrw-g6fx-mcx2

Also known as: CVE-2020-26302

Summary

is_js vulnerable to Regular Expression Denial of Service

Details

is.js is a general-purpose check library. Versions 0.9.0 and prior contain one or more regular expressions that are vulnerable to Regular Expression Denial of Service (ReDoS). is.js uses a regex copy-pasted from a gist to validate URLs. Trying to validate a malicious string can cause the regex to loop "forever." This vulnerability was found using a CodeQL query which identifies inefficient regular expressions. is.js has no patch for this issue.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-07-06 19:24 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

is_js

npm · All systems

Affected

  • introduced 0, last affected 0.9.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

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