Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2021-23567 (High) detected in colors-1.4.0.tgz - autoclosed #1159

Closed
mend-for-github-com bot opened this issue Jan 16, 2022 · 3 comments · Fixed by #1113
Closed

CVE-2021-23567 (High) detected in colors-1.4.0.tgz - autoclosed #1159

mend-for-github-com bot opened this issue Jan 16, 2022 · 3 comments · Fixed by #1113
Assignees
Labels
high severity High severity CVE Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@mend-for-github-com
Copy link

CVE-2021-23567 - High Severity Vulnerability

Vulnerable Library - colors-1.4.0.tgz

get colors in your node.js console

Library home page: https://registry.npmjs.org/colors/-/colors-1.4.0.tgz

Dependency Hierarchy:

  • agent-0.28.6.tgz (Root Library)
    • colors-1.4.0.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability 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

Publish Date: 2022-01-14

URL: CVE-2021-23567

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

@mend-for-github-com mend-for-github-com bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Jan 16, 2022
@tmarkley tmarkley added high severity High severity CVE cve Security vulnerabilities detected by Dependabot or Mend labels Jan 18, 2022
@boktorbb boktorbb self-assigned this Jan 24, 2022
@boktorbb
Copy link
Contributor

boktorbb commented Jan 24, 2022

It seems that @percy/agent is the package making use of colors. It currently uses colors-1.4.0 which is not affected by the CVE that targets versions >1.4.0

@boktorbb boktorbb linked a pull request Jan 25, 2022 that will close this issue
7 tasks
@boktorbb
Copy link
Contributor

Also, #1113 replaces @percy/agent which removes the dependency on colors

@mend-for-github-com mend-for-github-com bot changed the title CVE-2021-23567 (High) detected in colors-1.4.0.tgz CVE-2021-23567 (High) detected in colors-1.4.0.tgz - autoclosed Jan 26, 2022
@mend-for-github-com
Copy link
Author

✔️ This issue was automatically closed by WhiteSource because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the WhiteSource inventory.

@tmarkley tmarkley removed the cve Security vulnerabilities detected by Dependabot or Mend label Jan 27, 2022
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this issue Feb 10, 2022
…h-project#1159)

When rendering a floating legend inside the chart (`Settings.legendPosition.floating:true`), the added `Settings.legendPosition.floatingColumns` property allows you to specify the number of columns used to distributed the legend items.

fix opensearch-project#1158
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this issue Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high severity High severity CVE Mend: dependency security vulnerability Security vulnerability detected by Mend
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants