# CVE-2025-64716: Anubis vulnerable to possible XSS via redir parameter when using subrequest auth mode

> Anubis allows XSS via the redir parameter in subrequest auth mode, enabling attackers to execute scripts or bypass security controls.

- **Severity:** Medium 5.1 (`CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:H/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 13 Nov 2025
- **Updated:** 13 Nov 2025
- **Also known as:** GHSA-cf57-c578-7jvv, GO-2025-4086

## What is CVE-2025-64716?

CVE-2025-64716 is a medium-severity cross-site scripting vulnerability in TecharoHQ anubis, published on 13 Nov 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

Anubis is a Web AI Firewall Utility that challenges users' connections in order to protect upstream resources from scraper bots. Prior to version 1.23.0, when using subrequest authentication, Anubis did not perform validation of the redirect URL and redirects user to any URL scheme. While most modern browsers do not allow a redirect to `javascript:` URLs, it could still trigger dangerous behavior in some cases. Anybody with a subrequest authentication may be affected. Version 1.23.0 contains a fix for the issue.

Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation), CWE-601 (URL Redirection to Untrusted Site)

## Which versions are affected by CVE-2025-64716?

3 open source packages ship an affected version, including github.com/TecharoHQ/anubis.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/TecharoHQ/anubis` | Go | All versions | 1.23.0 |
| `github.com/TecharoHQ/anubis` | Go | All versions | 1.23.0 |
| `github.com/TecharoHQ/anubis` | Go | All versions | 1.23.0 |

## How do I fix CVE-2025-64716?

Upgrade github.com/TecharoHQ/anubis to 1.23.0 or later.

## Is CVE-2025-64716 being exploited?

There is no known exploitation of CVE-2025-64716 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-64716 and fix it if it is affected.

What it is: CVE-2025-64716 is a medium-severity cross-site scripting vulnerability in TecharoHQ anubis, published on 13 Nov 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2025-64716 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/TecharoHQ/anubis (Go): affected all versions; fixed in 1.23.0
- github.com/TecharoHQ/anubis (Go): affected all versions; fixed in 1.23.0
- github.com/TecharoHQ/anubis (Go): affected all versions; fixed in 1.23.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-64716/ (Markdown: https://insights.sbomify.com/CVE-2025-64716/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-64716
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-64716
- OSV: https://osv.dev/vulnerability/CVE-2025-64716

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-64716/
Summaries are generated and may contain mistakes; the official description above is the record.
