CVE-2020-26302
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
is.js prior to 0.9.0 has a ReDoS vulnerability in its URL validation regex, causing denial of service when processing crafted input.
Vulnerability
Description
is.js, a general-purpose check library, includes a regular expression to validate URLs that was copied from a gist. This regex is vulnerable to Regular Expression Denial of Service (ReDoS) due to exponential backtracking on crafted input. Versions 0.9.0 and prior are affected [1][2].
Exploitation
An attacker can exploit this vulnerability by providing a maliciously crafted URL string to any application using is.js for input validation. When the regex processes this string, it may enter a state of near-infinite backtracking, consuming excessive CPU resources. No authentication or special network position is required if the application exposes the validation to untrusted input [2].
Impact
Successful exploitation leads to a denial of service condition, exhausting server resources and potentially causing the application to become unresponsive. This can be used to disrupt services that rely on is.js for URL checking [1][2].
Mitigation
As of the disclosure timeline, the project maintainer did not respond, and no patch has been released. Users are advised to replace the vulnerable regex with a safer alternative or avoid using is.js for URL validation in security-critical contexts [2][4].
AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
is_jsnpm | <= 0.9.0 | — |
Affected products
3<=0.9.0+ 1 more
- (no CPE)range: <=0.9.0
- (no CPE)range: 0.9.0
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4News mentions
0No linked articles in our index yet.