{
  "id": "security/javascript/WebCoder49__code-input/2026-11-01-rainbowtext-template-dom-xss",
  "title": "Deprecated rainbowText template writes color names and delimiters as unescaped HTML (DOM XSS)",
  "category": "security",
  "type": "xss",
  "severity": "medium",
  "cvss": {
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
    "score": 5.4
  },
  "ecosystem": "javascript",
  "project": {
    "owner": "WebCoder49",
    "repo": "code-input",
    "url": "https://github.com/WebCoder49/code-input"
  },
  "affected_versions": [
    ">= 1.0.0, <= 2.9.0"
  ],
  "fixed_version": "2.10.0 (backports down to 1.0.4)",
  "status": "published",
  "disclosure": {
    "channel": "email",
    "ghsa_id": "GHSA-2m96-6r3x-vvfr",
    "cve_id": null,
    "url": "https://github.com/WebCoder49/code-input/security/advisories/GHSA-2m96-6r3x-vvfr",
    "reported_at": "2026-11-01T15:17:00+03:00",
    "published_at": "2026-11-17T16:27:18+03:00",
    "accepted_at": null
  },
  "summary": "When the deprecated codeInput.templates.rainbowText (rainbow_text) template is used with user-provided color names or a user-provided delimiter, that HTML is added to the DOM unescaped and can run script with access to the page. Fixed in 2.10.0 with backports to older lines.",
  "discovered_at": "2026-11-01T00:00:00+03:00",
  "public": true,
  "credit": "ucsurf",
  "updated_at": "2026-11-17T17:25:00+03:00",
  "pr": null
}
