CVE-2026-85062
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Summary
Colord is a tiny yet powerful tool for high-performance color manipulations and conversions. Prior to 2.9.4, synchronous CSS color string matchers in src/colorModels/rgbString.ts, src/colorModels/hslString.ts, src/colorModels/hwbString.ts, src/colorModels/lchString.ts, and src/colorModels/cmykString.ts use the ambiguous numeric regular expression ([+-]?\d*.?\d+), allowing the same digits to be divided between overlapping quantifiers in quadratically many ways when malformed input is rejected. An attacker who can supply an unbounded color string to colord(), getFormat(), isEqual(), mix(), or contrast(), including through a request body, JSON field, or uploaded stylesheet, can block the processing thread with a multi-kilobyte payload. The affected matchers are parseRgbaString, parseHslaString, parseHwbaString, parseLchaString, and parseCmykaString. This issue is fixed in version 2.9.4.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| omgovich | colord | < 2.9.4 | affected |
Weaknesses
- CWE-1333: CWE-1333: Inefficient Regular Expression Complexity
References
- https://github.com/omgovich/colord/security/advisories/GHSA-2wm5-q62r-hmrv
- https://github.com/omgovich/colord/pull/141
- https://github.com/omgovich/colord/commit/87018089515ed66a85b1a95c3c7c3fd69a25bac2
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.