Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. colord
  4. ›
  5. CVE-2026-85062

CVE-2026-85062: Colord: Slow rejection of oversized malformed color strings

September 8, 2026

colord’s CSS color string matchers described a number as ([+-]?\d*\.?\d+). In that form \d* and \d+ can match the same digits, so a run of n digits can be divided between them in O(n²) ways, and rejecting an input retries every division. Parsing is synchronous and uninterruptible, so a long malformed color string blocks the thread:

inputtime to reject
16 KB224 ms
64 KB4.4 s
128 KB18.5 s

Reachable through colord() and getFormat(), and through any method that accepts a color string — including isEqual(), mix() and contrast(). The affected matchers are parseRgbaString and parseHslaString (built in) and parseHwbaString, parseLchaString, parseCmykaString (plugins).

Growth is polynomial, not exponential — multi-kilobyte payloads are required for a noticeable stall.

References

  • github.com/advisories/GHSA-2wm5-q62r-hmrv
  • github.com/omgovich/colord/commit/87018089515ed66a85b1a95c3c7c3fd69a25bac2
  • github.com/omgovich/colord/pull/141
  • github.com/omgovich/colord/security/advisories/GHSA-2wm5-q62r-hmrv
  • nvd.nist.gov/vuln/detail/CVE-2026-85062

Code Behaviors & Features

Detect and mitigate CVE-2026-85062 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.9.4

Fixed versions

  • 2.9.4

Solution

Upgrade to version 2.9.4 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/colord/CVE-2026-85062.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:19 +0000.