CVE-2026-42259
MEDIUM 5.1CVSS 4.0Saltcorn: Open Redirect in `POST /auth/login` due to incomplete `is_relative_url` validation (backslash bypass)
Saltcorn is an extensible, open source, no-code database application builder. Prior to versions 1.4.6, 1.5.6, and 1.6.0-beta.5, 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. The bug is reachable on a default install and only requires a victim who can be tricked into logging in via a crafted Saltcorn URL. This issue has been patched in versions 1.4.6, 1.5.6, and 1.6.0-beta.5.
- Published
- 7 May 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-601
- Also known as
- GHSA-f3g8-9xv5-77gv
- Sources
- NVDJSONOSV GHSA-f3g8-9xv5-77gvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 5.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | @saltcorn/server | < 1.4.6 | 1.4.6 |
| OSV | npm | @saltcorn/server | >= 1.5.0-beta.0, < 1.5.6 | 1.5.6 |
| OSV | npm | @saltcorn/server | >= 1.6.0-alpha.0, < 1.6.0-beta.5 | 1.6.0-beta.5 |
References
- https://github.com/saltcorn/saltcorn/security/advisories/GHSA-f3g8-9xv5-77gv · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-42259 · ADVISORY
- https://github.com/saltcorn/saltcorn · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 7 May 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 16 Apr 2026)