GoSeverity: MediumStatus: Published

templ: javascript: URLs not sanitised in other URL attributes and mixed-case attribute names

templ sanitised string URLs only in a few attributes (a/link href, form action, object data) and only when the attribute name was lowercase. String values in other URL-bearing attributes, or in uppercase or mixed-case attribute names, were written without URL sanitisation, so javascript: URLs could pass through and run script. Fixed in v0.3.1100.

Timeline

  1. Found
  2. Reported via private vulnerability report
  3. Advisory published
  4. Entry last updated

Machine-readable: JSON · Markdown · ID security/go/a-h__templ/2026-10-06-url-attribute-sanitization-gap

If this work is useful to you, you can support it on Buy Me a Coffee.