CVE-2026-34206

Captcha Protect: Reflected XSS in challenge page via unsanitized destination rendered with text/template

Published Mar 31, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The exploit permits injection of arbitrary JavaScript into the captcha challenge page via a client‑supplied destination parameter. Because the plugin uses Go’s text/template without HTML escaping, the input is reflected verbatim, allowing an attacker to execute scripts in the victim’s browser and potentially steal credentials. This is a reflected Cross‑Site Scripting vulnerability (CWE‑79).

Affected Systems

The vulnerability impacts the libops captcha‑protect Traefik middleware in all versions prior to 1.12.2. Any Traefik instance that enables this plugin on subnets experiencing traffic spikes is affected.

Risk and Exploitability

With a CVSS score of 6.1, the issue carries moderate severity, and an EPSS probability of less than 1% indicates low likelihood of exploitation. It is not listed in the CISA KEV catalog. The attack vector is inferred to be a browser‑based reflected XSS triggered when a malicious destination URL is injected into the challenge page, causing the page to execute the crafted script.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libops captcha‑protect to version 1.12.2 or later and redeploy the Traefik middleware.
  • Restart affected Traefik services to apply the patched plugin, ensuring configuration references the updated version.
  • Verify that the challenge page no longer echoes unsanitized destination parameters by testing with benign input.

Generated by OpenCVE AI on April 7, 2026 at 23:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Libops captcha Protect
CPEs cpe:2.3:a:libops:captcha_protect:*:*:*:*:*:traefik:*:*
Vendors & Products Libops captcha Protect
Type Values Removed Values Added
First Time appeared Libops
Libops captcha-protect
Vendors & Products Libops
Libops captcha-protect
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Captcha Protect: Reflected XSS in challenge page via unsanitized destination rendered with text/template
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 1, 2026, 6:41 PM
Reserved
Mar 26, 2026, 3:57 PM
Status
Analyzed
Published
Mar 31, 2026, 8:16 PM
Modified
Jul 24, 2026, 8:10 PM