CVE-2026-34206
JSON

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 packageVersionsReported by
libops captcha-protect< 1.12.2CVE List
libops captcha_protectbefore 1.12.2NVD

Classification

CWE-79

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

Sources

SourceRecordLicence
CVE ListCVE-2026-34206 changed 2026-04-01CVE Terms of Use
NVDCVE-2026-34206 changed 2026-07-24Public domain