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

Medium 5.1 Published Updated

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

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

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, CWE-601

Which versions are affected by CVE-2025-64716?

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

PackageAffectedFixed in
github.com/TecharoHQ/anubis GoAll versions1.23.0
github.com/TecharoHQ/anubis GoAll versions1.23.0
github.com/TecharoHQ/anubis GoAll versions1.23.0

How do I fix CVE-2025-64716?

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

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-64716 being exploited?

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

Sources

Also known as GHSA-cf57-c578-7jvv, GO-2025-4086.

Is CVE-2025-64716 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free