GHSA-gh88-3pxp-6fm8

Suggest an improvement
Source
https://github.com/advisories/GHSA-gh88-3pxp-6fm8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-gh88-3pxp-6fm8/GHSA-gh88-3pxp-6fm8.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-gh88-3pxp-6fm8
Aliases
  • CVE-2021-23567
Published
2022-01-21T23:39:50Z
Modified
2023-11-01T04:54:41.733948Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Infinite Loop in colors.js
Details

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

Database specific
{
    "nvd_published_at": "2022-01-14T20:15:00Z",
    "cwe_ids": [
        "CWE-835"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2022-01-21T21:04:45Z"
}
References

Affected packages

npm / colors

Package

Affected ranges

Type
SEMVER
Events
Introduced
1.4.1