Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1naDg4LTNweHAtNmZtOM0jtg

Infinite Loop in colors.js

The package colors after 1.4.0 are vulnerable to Denial of Service (DoS) that was introduced through an infinite loop in the americanFlag module. Unfortunately this appears to have been a purposeful attempt by a maintainer of colors to make the package unusable, other maintainers' controls over this package appear to have been revoked in an attempt to prevent them from fixing the issue. Vulnerable Code js for (let i = 666; i < Infinity; i++;) { Alternative Remediation Suggested * Pin dependancy to 1.4.0

Permalink: https://github.com/advisories/GHSA-gh88-3pxp-6fm8
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1naDg4LTNweHAtNmZtOM0jtg
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 2 years ago
Updated: over 1 year ago


CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Identifiers: GHSA-gh88-3pxp-6fm8, CVE-2021-23567
References: Repository: https://github.com/Marak/colors.js
Blast Radius: 43.0

Affected Packages

npm:colors
Dependent packages: 29,121
Dependent repositories: 535,834
Downloads: 71,266,142 last month
Affected Version Ranges: >= 1.4.1
No known fixed version
All affected versions: