Skip to main content

d3-color vulnerable to ReDoS

0
High
Published: 09/29/2022 (09/29/2022, 14:12:55 UTC)
Source: GCVE Database
Product: d3-color

Description

The d3-color module, used for color space representations in browsers, has a vulnerability in versions from 1.0.2 up to but not including 3.1.0. This vulnerability is a Regular Expression Denial of Service (ReDoS) issue. The vulnerability has been fixed in version 3.1.0. No known workarounds exist for affected versions.

Affected software

npmghsa
d3-color
Affected versions
>=1.0.2 <3.1.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 23:56:42 UTC

Technical Analysis

Versions of the d3-color module prior to 3.1.0 are vulnerable to a Regular Expression Denial of Service (ReDoS) attack. This vulnerability arises from inefficient regular expression processing that can be exploited to cause excessive resource consumption, leading to denial of service. The issue is tracked under GHSA-36jr-mh4h-2g58 and is associated with CWE-400 (Uncontrolled Resource Consumption) and CWE-1333. The vulnerability has been patched in version 3.1.0 of d3-color. There are no known workarounds for affected versions.

Potential Impact

Exploitation of this vulnerability can lead to denial of service conditions by causing the application to consume excessive CPU resources when processing crafted input that triggers the vulnerable regular expression. This can degrade application availability or responsiveness. There are no reports of known exploits in the wild.

Mitigation Recommendations

Upgrade d3-color to version 3.1.0 or later, where the vulnerability has been patched. There are no known workarounds for affected versions, so updating is the recommended remediation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-36jr-mh4h-2g58
Osv Schema Version
1.4.0
Ecosystems
["npm"]
Database Specific Severity
HIGH

Threat ID: 6a6bddaf9c2644c7f8da8d73

Added to database: 07/30/2026, 23:26:39 UTC

Last enriched: 07/30/2026, 23:56:42 UTC

Last updated: 09/07/2026, 19:32:11 UTC

Views: 22

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses