Skip to content
Heist/ feed
Back to feed
Medium

node-color-string — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2021-29060

A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Color-String version 1.5.5 and below which occurs when the application is provided and checks a crafted invalid HWB string.

Products
node-color-string
Affected versions
1.5.2-1, 1.5.4-2, 1.9.1-2
Fixed versions
Not specified
CVEs
CVE-2021-29060
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:36 UTC · Revision 1

Source evidence

UBUNTU-CVE-2021-29060

core-osv · Original source

Published 21 Jun 2021, 16:15 UTC

A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Color-String version 1.5.5 and below which occurs when the application is provided and checks a crafted invalid HWB string.

osv:UBUNTU-CVE-2021-29060

node-color-string

Fixed versions: Not specified

node-color-string

Fixed versions: Not specified

node-color-string

Fixed versions: Not specified

node-color-string

Fixed versions: Not specified

node-color-string

Fixed versions: Not specified

node-color-string

Fixed versions: Not specified

node-color-string

Fixed versions: Not specified

Complete source record
{
  "id": "b234c79b1729799959bc81ff98880b65bd3edab16f7bb54d8ea7a372e4d06ef2",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-29060",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2021-29060",
    "summary": "A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Color-String version 1.5.5 and below which occurs when the application is provided and checks a crafted invalid HWB string.",
    "evidence": "osv:UBUNTU-CVE-2021-29060",
    "products": [
      {
        "name": {
          "value": "node-color-string",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.5.2-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-color-string",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.5.2-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-color-string",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.5.4-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-color-string",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.9.1-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-color-string",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.9.1-2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-color-string",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.9.1-2",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-color-string",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.9.1-2",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2021-29060",
      "aliases": [
        "UBUNTU-CVE-2021-29060"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-color-string",
            "purl": "pkg:deb/ubuntu/node-color-string?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.5.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29060.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-color-string",
                "binary_version": "1.5.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-color-string",
            "purl": "pkg:deb/ubuntu/node-color-string?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.5.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29060.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-color-string",
                "binary_version": "1.5.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-color-string",
            "purl": "pkg:deb/ubuntu/node-color-string?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.5.4-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29060.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-color-string",
                "binary_version": "1.5.4-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-color-string",
            "purl": "pkg:deb/ubuntu/node-color-string?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.9.1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29060.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-color-string",
                "binary_version": "1.9.1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-color-string",
            "purl": "pkg:deb/ubuntu/node-color-string?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.9.1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29060.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-color-string",
                "binary_version": "1.9.1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-color-string",
            "purl": "pkg:deb/ubuntu/node-color-string?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.9.1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29060.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-color-string",
                "binary_version": "1.9.1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-color-string",
            "purl": "pkg:deb/ubuntu/node-color-string?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.9.1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29060.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-color-string",
                "binary_version": "1.9.1-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:12.775892632Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-29060"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2021-29060",
        "https://github.com/yetingli/SaveResults/blob/main/js/color-string.js",
        "https://github.com/yetingli/PoCs/blob/main/CVE-2021-29060/Color-String.md",
        "https://github.com/Qix-/color-string/commit/0789e21284c33d89ebc4ab4ca6f759b9375ac9d3",
        "https://www.npmjs.com/package/color-string",
        "https://www.cve.org/CVERecord?id=CVE-2021-29060"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-29060",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356918,
  "published_at": "2021-06-21T16:15:00+00:00"
}