GHSA-6wcg-mqvh-fcvg: Medium severity go/github.com/TecharoHQ/anubis vulnerability

Published Oct 2, 2026
·
Updated

Any HTTP client can bypass Anubis bot protection on the default configuration by adding a single request header. No challenge needs to be solved. Affected versions: v1.22.0 through v1.25.0 (introduced in commit d1d631a, PR #1015)

The root cause is in lib/policy/checker.go, PathChecker.Check(): go func (pc PathChecker) Check(r http.Request) (bool, error) { originalUrl := r.Header.Get("X-Original-URI") if originalUrl != "" { if pc.regexp.MatchString(originalUrl) { return true, nil } } if pc.regexp.MatchString(r.URL.Path) { return true, nil } return false, nil }

The header value comes directly from the client request. The middleware chain never strips it. In reverse proxy mode an attacker fully controls it. The default policy imports data/common/keep-internet-working.yaml, which contains path-only ALLOW rules with no other conditions:

yaml - name: well-known pathregex: ^/\.well-known/.$ action: ALLOW

When X-Original-URI matches one of those regexes, the rule fires as ALLOW and the request is forwarded upstream without any challenge or JWT check.

Proof of concept

Normal request, gets challenged: curl -s https://anubis.techaro.lol/ | grep -o "<title>.</title>"

Bypass, gets upstream content: curl -s -H "X-Original-URI: /.well-known/x" https://anubis.techaro.lol/ | grep -o "<title>.</title>"

The first command returns the Anubis challenge page title. The second returns the real site title directly, with no cookie set and no challenge issued. Verified live against anubis.techaro.lol.

Suggested fix The fix should probably be to strip the header from incoming client requests in the middleware chain before policy evaluation. In authrequest mode the header is set by the proxy after Anubis processes the middleware, so stripping it at ingress does not break that deployment mode.

Affected Software

1 affected componentFixes available
go/github.com/TecharoHQ/anubis>=1.22.0<1.26.0
1.26.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/TecharoHQ/anubis to a version that resolves this vulnerability.

    Fixed in 1.26.0
  2. Configuration

    Strip the X-Original-URI header from incoming client requests in the middleware chain before policy evaluation. In auth_request mode, the proxy-set header remains available after Anubis processes the middleware.

    Anubis middleware chain X-Original-URI = strip incoming client-supplied header

Event History

Oct 2, 2026
Advisory Published
via GitHub·06:22 PM
Data Sourced
via GitHub·06:22 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed without custom policy changes?

Deployments using the default policy are exposed because it imports data/common/keep-internet-working.yaml. That policy includes path-only ALLOW rules, including one for paths under /.well-known/.

2

What does an attacker need to bypass the protection?

An unauthenticated HTTP client only needs to send an X-Original-URI header whose value matches an allowed path regex. No Anubis challenge needs to be solved, and no JWT check is performed before the request is forwarded upstream.

3

Is reverse-proxy mode affected?

Yes. In reverse-proxy mode, the attacker fully controls the X-Original-URI header, and the middleware chain does not strip it before policy evaluation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203