# CVE-2026-42259: Saltcorn: Open Redirect in `POST /auth/login` due to incomplete `is_relative_url` validation (backslash bypass)

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-16T23:00:45.000Z
- Modified: 2026-06-17T10:47:35.800Z
- Also known as: GHSA-f3g8-9xv5-77gv
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- saltcorn saltcorn: < 1.4.6; >= 1.5.0-beta.0, < 1.5.6; >= 1.6.0-alpha.0, < 1.6.0-beta.5
- @saltcorn/server (npm): before 1.4.6; from 1.5.0-beta.0 before 1.5.6; from 1.6.0-alpha.0 before 1.6.0-beta.5

## Every score

- GitHub_M: CVSS:4.0 5.1 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/saltcorn/saltcorn/security/advisories/GHSA-f3g8-9xv5-77gv> (exploit, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42259> (advisory)
- <https://github.com/saltcorn/saltcorn> (package)

## Sources

- CVE List: [CVE-2026-42259](https://www.cve.org/CVERecord?id=CVE-2026-42259), CVE Terms of Use, modified 2026-05-08
- GitHub Advisory Database: [GHSA-f3g8-9xv5-77gv](https://github.com/advisories/GHSA-f3g8-9xv5-77gv), CC-BY-4.0, modified 2026-05-11
- NVD: [CVE-2026-42259](https://nvd.nist.gov/vuln/detail/CVE-2026-42259), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-42259 · Whole record: https://cve.day/CVE-2026-42259.json · Rebuilt by cve.day 2026-11-25T22:59:20.918Z
