Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. rgb2hex
  4. ›
  5. GMS-2019-52

GMS-2019-52: Denial of Service in rgb2hex

August 23, 2019 (updated August 17, 2021)

All versions of rgb2hex are vulnerable to Regular Expression Denial of Service (ReDoS) when an attacker can pass in a specially crafted invalid color value. Update to or later.

References

  • github.com/advisories/GHSA-65p8-3hm4-h9h8
  • github.com/christian-bromann/rgb2hex/blob/v0.1.0/index.js
  • hackerone.com/reports/319629
  • nodesecurity.io/advisories/647
  • snyk.io/vuln/npm:rgb2hex:20180429
  • www.npmjs.com/advisories/647

Code Behaviors & Features

Detect and mitigate GMS-2019-52 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.1.6

Fixed versions

  • 0.1.6

Solution

Upgrade to version 0.1.6 or above.

Source file

npm/rgb2hex/GMS-2019-52.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:07 +0000.