{"id":"CVE-2026-62314","aliases":["CVE-2026-62314","GHSA-6wcg-mqvh-fcvg","GO-2026-6639"],"related":[],"kind":"vulnerability","state":"published","title":"Anubis: Policy bypass via client controlled X-Original-URI header","summary":"Anubis is a Web AI Firewall Utility that challenges users' connections in order to protect upstream resources from scraper bots. From 1.22.0 until 1.26.0-pre1, lib/policy/checker.go PathChecker.Check() trusted the client-controlled X-Original-URI header before matching r.URL.Path, allowing an HTTP client to match default data/common/keep-internet-working.yaml ALLOW rules such as ^/\\.well-known/.*$ and bypass the Anubis challenge. This issue is fixed in version 1.26.0-pre1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Anubis is a Web AI Firewall Utility that challenges users' connections in order to protect upstream resources from scraper bots. From 1.22.0 until 1.26.0-pre1, lib/policy/checker.go PathChecker.Check() trusted the client-controlled X-Original-URI header before matching r.URL.Path, allowing an HTTP client to match default data/common/keep-internet-working.yaml ALLOW rules such as ^/\\.well-known/.*$ and bypass the Anubis challenge. This issue is fixed in version 1.26.0-pre1.","source":"cvelist"},{"lang":"en","text":"Any HTTP client can bypass Anubis bot protection on the default configuration by adding a single request header. No challenge needs to be solved.\nAffected versions: v1.22.0 through v1.25.0 (introduced in commit d1d631a, PR #1015)\n\nThe root cause is in `lib/policy/checker.go`, `PathChecker.Check()`:\n```go\nfunc (pc *PathChecker) Check(r *http.Request) (bool, error) {\n    originalUrl := r.Header.Get(\"X-Original-URI\")\n    if originalUrl != \"\" {\n        if pc.regexp.MatchString(originalUrl) {\n            return true, nil\n        }\n    }\n    if pc.regexp.MatchString(r.URL.Path) {\n        return true, nil\n    }\n    return false, nil\n}\n```\n\nThe header value comes directly from the client request. The middleware chain never strips it. In reverse proxy mode an attacker fully controls it.\nThe default policy imports `data/common/keep-internet-working.yaml`, which contains path-only ALLOW rules with no other conditions:\n\n```yaml\n- name: well-known\n  path_regex: ^/\\.well-known/.*$\n  action: ALLOW\n```\n\nWhen `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.\n\n\n# Proof of concept\n\nNormal request, gets challenged:\n```\ncurl -s https://anubis.techaro.lol/ | grep -o \"<title>.*</title>\"\n```\n\nBypass, gets upstream content:\n```\ncurl -s -H \"X-Original-URI: /.well-known/x\" https://anubis.techaro.lol/ | grep -o \"<title>.*</title>\"\n```\n\nThe 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.\n\n# Suggested fix\nThe fix should probably be to strip the header from incoming client requests in the middleware chain before policy evaluation. In `auth_request` mode the header is set by the proxy after Anubis processes the middleware, so stripping it at ingress does not break that deployment mode.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Anubis: Policy bypass via client controlled X-Original-URI header in github.com/TecharoHQ/anubis","format":"markdown","source":"go"},{"lang":"es","text":"Anubis es una utilidad de cortafuegos web con IA que desafía las conexiones de los usuarios para proteger los recursos ascendentes de los bots raspadores. Desde la versión 1.22.0 hasta la 1.26.0-pre1, lib/policy/checker.go PathChecker.Check() confiaba en el encabezado X-Original-URI controlado por el cliente antes de hacer coincidir r.URL.Path, lo que permitía a un cliente HTTP hacer coincidir reglas ALLOW predeterminadas de data/common/keep-internet-working.yaml como ^/\\.well-known/.*$ y eludir el desafío de Anubis. Este problema está solucionado en la versión 1.26.0-pre1.","source":"nvd"}],"published":"2026-07-15T21:18:00.355Z","modified":"2026-10-24T21:10:00.130Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","score":5.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-284"],"affected":[{"ranges":[{"version":">= 1.22.0, < 1.26.0-pre1","status":"affected"}],"vendor":"TecharoHQ","product":"anubis","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.22.0","status":"affected","fixed":"1.26.0"}],"ecosystem":"Go","package":"github.com/TecharoHQ/anubis","purl":"pkg:golang/github.com/TecharoHQ/anubis","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.22.0","status":"affected","fixed":"1.26.0"}],"ecosystem":"Go","package":"github.com/TecharoHQ/anubis","purl":"pkg:golang/github.com/TecharoHQ/anubis","source":"go"}],"references":[{"url":"https://github.com/TecharoHQ/anubis/security/advisories/GHSA-6wcg-mqvh-fcvg","tags":["advisory","exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/TecharoHQ/anubis/pull/1630","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/TecharoHQ/anubis/commit/276b537776b281b1c4e01421435bc03ade3d8fc4","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/TecharoHQ/anubis/releases/tag/v1.26.0-pre1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62314","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/TecharoHQ/anubis","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-08-12T17:50:19.423Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-62314","url":"https://www.cve.org/CVERecord?id=CVE-2026-62314","licence":"CVE Terms of Use","modified":"2026-08-12T17:50:22.279Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6wcg-mqvh-fcvg","url":"https://github.com/advisories/GHSA-6wcg-mqvh-fcvg","licence":"CC-BY-4.0","modified":"2026-10-07T17:55:39.900Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6639","url":"https://pkg.go.dev/vuln/GO-2026-6639","licence":"CC-BY-4.0","modified":"2026-10-07T17:45:12.474Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-62314","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62314","licence":"Public domain","modified":"2026-10-24T21:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:28.362Z","epss":{"score":0.00718,"percentile":0.5508,"date":"2026-12-01T12:00:22.000Z"}}