Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @saltcorn/server
  4. ›
  5. CVE-2026-42259

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

April 16, 2026 (updated May 4, 2026)

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.

References

  • github.com/advisories/GHSA-f3g8-9xv5-77gv
  • github.com/saltcorn/saltcorn
  • github.com/saltcorn/saltcorn/security/advisories/GHSA-f3g8-9xv5-77gv
  • nvd.nist.gov/vuln/detail/CVE-2026-42259

Code Behaviors & Features

Detect and mitigate CVE-2026-42259 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.4.6, all versions starting from 1.5.0-beta.0 before 1.5.6, all versions starting from 1.6.0-alpha.0 before 1.6.0-beta.5

Fixed versions

  • 1.4.6
  • 1.5.6
  • 1.6.0-beta.5

Solution

Upgrade to versions 1.4.6, 1.5.6, 1.6.0-beta.5 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

npm/@saltcorn/server/CVE-2026-42259.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:17 +0000.