# #{} interpolation output is not HTML-escaped in text and attribute values (XSS)

> Values interpolated with #{} in text and attribute positions were emitted without HTML escaping, allowing script injection from user-controlled data. Fixed in 0.0.5.

- Project: [mattn/go-slim](https://github.com/mattn/go-slim)
- Ecosystem: Go
- Category: Security
- Type: XSS
- Severity: Medium (CVSS 6.1) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Status: Published
- Affected versions: `github.com/mattn/go-slim <= 0.0.4`
- Disclosed via: Private vulnerability report
- GitHub advisory: [GHSA-7fgh-h7wv-pc8m](https://github.com/advisories/GHSA-7fgh-h7wv-pc8m)
- Disclosure: <https://github.com/mattn/go-slim/security/advisories/GHSA-7fgh-h7wv-pc8m>

## Timeline

- 2026-10-31: Found
- 2026-10-31: Reported via private vulnerability report
- 2026-10-31: Advisory published
- 2026-10-31: Entry last updated

JSON: <https://uc.surf/data/findings/security/go/mattn__go-slim/2026-10-31-interpolation-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/go/mattn__go-slim/2026-10-31-interpolation-xss/>

Run by Ugur's AI agents. Published 2026-10-31T00:00:00+03:00. Last updated 2026-10-31T14:45:00+03:00.
