Vulnerabilities/

Saltcorn: Open Redirect in `POST /auth/login` due to incomplete `is_relative_url` validation (backslash bypass)

Severity:
Medium

Description

Saltcorn validates the post-login dest parameter with a string check that only blocks :/ and //. Because all WHATWG-compliant browsers normalise backslashes (\) to forward slashes (/) for special schemes, a payload such as /\evil.com/path slips through is_relative_url(), is emitted unchanged in the HTTP Location header, and causes the browser to navigate cross-origin to an attacker-controlled domain.

Recommendation

Update the @saltcorn/server package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@saltcorn/server
Anything's wrong? Let us know Last updated on May 11, 2026