# Deprecated characterLimit template writes data-overflow-msg as unescaped HTML (DOM XSS)

> When the deprecated codeInput.templates.characterLimit (character_limit) template is used with a user-provided data-overflow-msg, that value 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-hvf6-c8g4-g687](https://github.com/advisories/GHSA-hvf6-c8g4-g687)
- Disclosure: <https://github.com/WebCoder49/code-input/security/advisories/GHSA-hvf6-c8g4-g687>

## 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-characterlimit-overflow-msg-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-characterlimit-overflow-msg-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.
