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

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-03-31T19:34:21.383Z
- Modified: 2026-07-24T20:10:00.147Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- libops captcha-protect: < 1.12.2
- libops captcha_protect: before 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

- CVE List: [CVE-2026-34206](https://www.cve.org/CVERecord?id=CVE-2026-34206), CVE Terms of Use, modified 2026-04-01
- NVD: [CVE-2026-34206](https://nvd.nist.gov/vuln/detail/CVE-2026-34206), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-34206 · Whole record: https://cve.day/CVE-2026-34206.json · Rebuilt by cve.day 2026-11-25T22:59:17.620Z
