Skip to content
OpenAdvisories
Medium · 6.9 CVE-2026-85062 EUVD-2026-70736GHSA-2wm5-q62r-hmrv

Colord: Slow rejection of oversized malformed color strings

Published Sep 3, 2026 · Updated Sep 9, 2026 · Assigned by GitHub_M

Description

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 products

VendorProductAffectedFixed
omgovich colord < 2.9.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 colord No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling vitess-24 24.0.3-r6 —
Wolfi rolling vitess-24-compat 24.0.3-r7 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm colord < 2.9.4 2.9.4 GHSA-2wm5-q62r-hmrv

References