CVE-2018-25061
JavaScript vulnerability analysis and mitigation

Overview

A vulnerability was found in rgb2hex up to version 0.1.5. The issue affects the regular expression processing functionality, which could lead to inefficient regular expression complexity. The vulnerability was discovered and disclosed on December 31, 2022, and was assigned CVE-2018-25061. The affected component is the rgb2hex package, which is used for color code conversion (NVD, VulDB).

Technical details

The vulnerability is classified as a Regular Expression Denial of Service (ReDoS) issue, identified as CWE-1333 (Inefficient Regular Expression Complexity). The vulnerability has been rated with a CVSS v3.1 base score of 7.5 (HIGH) according to NVD, and 4.3 (MEDIUM) according to VulDB. The issue stems from the use of a regular expression with potentially exponential worst-case computational complexity that could consume excessive CPU cycles (NVD).

Impact

The vulnerability primarily affects the availability of systems using the rgb2hex package. When exploited, it can lead to excessive CPU consumption, potentially causing a denial of service condition. The attack can be initiated remotely, though the actual impact may vary depending on the implementation and usage context (VulDB).

Mitigation and workarounds

The vulnerability has been fixed in version 0.1.6 of rgb2hex. The patch (9e0c38594432edfa64136fdf7bb651835e17c34f) addresses the issue by implementing a more efficient regular expression pattern. Users are recommended to upgrade to version 0.1.6 or later to mitigate this vulnerability (GitHub Patch, GitHub Release).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23744CRITICAL9.8
  • JavaScriptJavaScript
  • @mcpjam/inspector
NoYesJan 16, 2026
CVE-2026-23735HIGH8.7
  • JavaScriptJavaScript
  • graphql-modules
NoYesJan 16, 2026
GHSA-gw32-9rmw-qwwwHIGH8.4
  • JavaScriptJavaScript
  • svelte
NoYesJan 16, 2026
CVE-2026-23745HIGH8.2
  • JavaScriptJavaScript
  • argo-workflows-fips-3.6
NoYesJan 16, 2026
GHSA-38cw-85xc-xr9xMEDIUM6.8
  • JavaScriptJavaScript
  • @veramo/data-store
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management