6.1medium
Captcha Protect: Reflected XSS in challenge page via unsanitized destination rendered with text/template
- Severity
- 6.1medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
Captcha Protect is a Traefik middleware to add an anti-bot challenge to individual IPs in a subnet when traffic spikes are detected from that subnet. Prior to version 1.12.2, a reflected cross-site scripting (XSS) vulnerability exists in github.com/libops/captcha-protect. The challenge page accepted a client-supplied destination value and rendered it into HTML using Go's text/template. Because text/template does not perform contextual HTML escaping, an attacker could supply a crafted destination value that breaks out of the hidden input attribute and injects arbitrary script into the challenge page. This issue has been patched in version 1.12.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| libops captcha-protect | < 1.12.2 | CVE List |
| libops captcha_protect | before 1.12.2 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Captcha Protect is a Traefik middleware to add an anti-bot challenge to individual IPs in a subnet when traffic spikes are detected from that subnet. Prior to version 1.12.2, a reflected cross-site scripting (XSS) vulnerability exists in github.com/libops/captcha-protect. The challenge page accepted a client-supplied destination value and rendered it into HTML using Go's text/template. Because text/template does not perform contextual HTML escaping, an attacker could supply a crafted destination value that breaks out of the hidden input attribute and injects arbitrary script into the challenge page. This issue has been patched in version 1.12.2.
NVD (es)
Captcha Protect es un middleware de Traefik para añadir un desafío anti-bot a IPs individuales en una subred cuando se detectan picos de tráfico desde esa subred. Antes de la versión 1.12.2, existe una vulnerabilidad de cross-site scripting (XSS) reflejado en github.com/libops/captcha-protect. La página de desafío aceptaba un valor de destino proporcionado por el cliente y lo renderizaba en HTML usando el text/template de Go. Debido a que text/template no realiza el escape contextual de HTML, un atacante podría proporcionar un valor de destino manipulado que escapa del atributo de entrada oculto e inyecta script arbitrario en la página de desafío. Este problema ha sido parcheado en la versión 1.12.2.
References
| https://github.com/libops/captcha-protect/security/advisories/GHSA-ph62-4j5g-2q4r | mitigation, patch, vendor-advisory | |
| https://github.com/libops/captcha-protect/commit/eef6211ecd1147273be484d913b81c68c0bd8d3f | patch | |
| https://github.com/libops/captcha-protect/releases/tag/v1.12.2 | product, release-notes | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-34206 changed 2026-04-01 | CVE Terms of Use |
| NVD | CVE-2026-34206 changed 2026-07-24 | Public domain |