CVE-2026-34206 Details
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.
A reflected cross-site scripting vulnerability has been identified in the Captcha Protect middleware for Traefik, in versions prior to 1.12.2. The vulnerability arises because the challenge page renders a client-supplied destination value into HTML using Go's text/template, which does not properly escape HTML context. This flaw allows an attacker to inject arbitrary scripts by crafting a malicious destination value that escapes the hidden input attribute. Exploitation of this vulnerability would execute the injected JavaScript in the context of the application origin.
Users are advised to upgrade to version 1.12.2 or later, where this vulnerability has been fixed by changing the template rendering to use html/template, which applies the necessary HTML escaping, and by normalizing and restricting the destination parameter before use.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/libops/captcha-protect/commit/eef6211ecd1147273be484d913b81c68c0bd8d3f | [email protected] | Patch |
| https://github.com/libops/captcha-protect/releases/tag/v1.12.2 | [email protected] | ProductRelease Notes |
| https://github.com/libops/captcha-protect/security/advisories/GHSA-ph62-4j5g-2q4r | [email protected] | MitigationPatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libops captcha protect | < 1.12.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 7, 2026 | Initial Analysis | [email protected] |
| Mar 31, 2026 | New CVE Received | [email protected] |