techarohq/anubis · Security
Anubis vulnerable to possible XSS via redir parameter when using subrequest auth mode
- GHSA ID
- GHSA-cf57-c578-7jvv
- CVE ID
- CVE-2025-64716
- Severity
- medium
- Published
- Updated
- CVSS
- 0 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
- CVSS v3
- 0 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
- CVSS v4
- 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
Description
Summary
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.
GET https://example.com/.within.website/?redir=javascript:alert() responds with Location: javascript:alert().
Impact
Anybody with a subrequest authentication seems affected. Using javascript: URLs will probably be blocked by most modern browsers, but using custom protocols for third-party applications might still trigger dangerous operations.
Note
This was originally reported by @mbiesiad against Weblate.
CWEs
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-601 · URL Redirection to Untrusted Site ('Open Redirect')
References
- https://github.com/TecharoHQ/anubis/security/advisories/GHSA-cf57-c578-7jvv ↗
- https://github.com/TecharoHQ/anubis/commit/7ed1753fcced351c81961bf520a7bfb2caac6e88 ↗
- https://pkg.go.dev/vuln/GO-2025-4086 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2025-64716 ↗
- https://github.com/advisories/GHSA-cf57-c578-7jvv ↗