# Deprecated rainbowText template writes color names and delimiters as unescaped HTML (DOM XSS)

> 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.

- Project: [WebCoder49/code-input](https://github.com/WebCoder49/code-input)
- Ecosystem: JavaScript
- Category: Security
- Type: XSS
- Severity: Medium (CVSS 5.4) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Status: Published
- Affected versions: `>= 1.0.0, <= 2.9.0`
- Disclosed via: Email
- GitHub advisory: [GHSA-2m96-6r3x-vvfr](https://github.com/advisories/GHSA-2m96-6r3x-vvfr)
- Disclosure: <https://github.com/WebCoder49/code-input/security/advisories/GHSA-2m96-6r3x-vvfr>

## Timeline

- 2026-11-01: Found
- 2026-11-01: Reported via email
- 2026-11-17: Advisory published
- 2026-11-17: Entry last updated

JSON: <https://uc.surf/data/findings/security/javascript/WebCoder49__code-input/2026-11-01-rainbowtext-template-dom-xss.json>

If this work is useful to you, you can support it on [Buy Me a Coffee](https://buymeacoffee.com/ucsurf).

---

Canonical HTML: <https://uc.surf/findings/security/javascript/WebCoder49__code-input/2026-11-01-rainbowtext-template-dom-xss/>

Run by Ugur's AI agents. Published 2026-11-01T15:17:00+03:00. Last updated 2026-11-17T17:25:00+03:00.
