Skip to main content

Saltcorn CVE-2026-42259

| EUVDEUVD-2026-28431 MEDIUM
URL Redirection to Untrusted Site (Open Redirect) (CWE-601)
2026-05-07 GitHub_M
5.1
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Click malicious login link
  2. Delivery
    Submit login credentials
  3. Exploit
    is_relative_url() fails to block backslash
  4. Install
    Location header emitted with /\evil.com/path
  5. C2
    Browser normalizes backslash to forward slash
  6. Execute
    Cross-origin redirect executed
  7. Impact
    Session hijack

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability requires that the victim be logged in or logging in via the POST /auth/login endpoint with a crafted dest parameter. Specifically: the Saltcorn application must have the default or unchanged is_relative_url() validation function in packages/server/routes/utils.js; the destination parameter must be included in the POST body and not already rejected by upstream filters; modern WHATWG-compliant browser behavior (all major browsers) is required for backslash normalization; and the victim must successfully authenticate with valid credentials before the redirect is executed. The attack is reachable on default installations with no special configuration - the vulnerable code path is active whenever POST /auth/login is processed. The limiting factors that reduce practical exploitation are: user interaction is required (victim must click the malicious link and enter credentials), the attacker cannot exploit existing authenticated sessions (the dest parameter is only processed during login), and the redirect only succeeds if the victim's browser implements WHATWG URL parsing (true for all modern browsers, but excludes obsolete clients). Non-default deployments using external authentication (LDAP, OAuth, SAML) may have different login flow code paths, but the default local authentication is vulnerable.

Impact

Despite a moderate CVSS 5.1 score (AV:N/AC:L/PR:N/UI:A), the real-world risk is elevated by multiple factors. The CVSS vector shows network-accessible exploitation (AV:N) with low complexity (AC:L) and no privilege requirements (PR:N), but requires user interaction (UI:A) - specifically, the victim must click a crafted link and successfully authenticate. The Scope:L and SI:L ratings indicate limited cross-site impact (user's session can be hijacked to external domains). EPSS data is not provided, but the vulnerability meets criteria for high real-world exploitation likelihood: the bug is reachable on default installations, a proof-of-concept exists (poc.zip in GitHub advisory), the attack surface is the post-login flow (every authenticated user session), and exploitation relies only on social engineering the victim to click a link - a well-established attack vector. The CVSS 5.1 understates severity because UI:A (user interaction required) cannot capture the realism of phishing attacks where credential compromise precedes the redirect. Active exploitation status is unknown (no CISA KEV listed), but poc.zip in the advisory confirms exploit code exists. The patch is available and released to all affected version branches, reducing urgency for unpatched systems only if deployment resources are strained. The combination of default exploitability, phishing surface, and existing PoC makes this a medium-to-high priority for any Saltcorn user.

Exploit ScenarioDerived

An attacker sends a phishing email to Saltcorn users with a malicious login URL such as http://victim-saltcorn-instance.com/auth/login?dest=/\attacker.com/steal-session. When the victim clicks the link, they are presented with the legitimate Saltcorn login form. After entering valid credentials and submitting the form, the POST /auth/login request includes dest=/\attacker.com/steal-session (or URL-encoded variant) in the body. The Saltcorn application validates this with is_relative_url(), which incorrectly allows it (the backslash is not detected as a cross-origin marker), and sets the Location header to /\attacker.com/steal-session. The victim's browser normalizes the backslash to a forward slash, interprets the URL as http://attacker.com/steal-session, and redirects the authenticated session cookie to the attacker's domain. The attacker can then harvest the session token or perform account takeover. A PoC with automated setup and exploitation scripts is provided in poc.zip on the GitHub advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 07, 2026

Open redirect in Saltcorn's post-login destination parameter validation allows attackers to redirect authenticated users to attacker-controlled domains via backslash bypass. Versions prior to 1.4.6, 1.5.6, and 1.6.0-beta.5 are vulnerable because the is_relative_url() function only blocks ':/' and '//' but fails to account for WHATWG URL parsing, which normalizes backslashes to forward slashes in special schemes. An attacker can craft a malicious login URL with a dest parameter like /\evil.com/path that bypasses validation, passes through the Location header unencoded, and causes the victim's browser to navigate cross-origin after successful authentication. This requires user interaction (clicking a crafted link) but no special configuration and affects default installations.

RemediationAI

Upgrade Saltcorn immediately to patched versions: 1.4.6, 1.5.6, or 1.6.0-beta.5 (or later stable release in the 1.6.x branch). The fix updates the is_relative_url() validation function to properly reject backslash characters and non-http(s) schemes before the redirect is emitted. For users unable to patch immediately, implement network-layer compensating controls: configure a Web Application Firewall (WAF) to block POST /auth/login requests where the dest parameter contains backslash characters (\) or non-http(s) URI schemes (javascript:, data:, vbscript:, etc.). Note that WAF bypass is possible if the attacker uses additional URL encoding, so also inspect double-encoded payloads. Alternatively, enforce a strict Content-Security-Policy (CSP) with 'default-src self' and 'form-action self' to prevent form submissions to cross-origin targets, but this does not stop the Location header redirect itself. Monitor authentication logs for suspicious dest parameters and alert on patterns containing backslashes or unusual schemes. The patches are available in npm @saltcorn/server 1.4.6, 1.5.6, and 1.6.0-beta.5+; pull requests are visible in the GitHub advisory at https://github.com/saltcorn/saltcorn/security/advisories/GHSA-f3g8-9xv5-77gv.

Affected VersionsENISA

saltcorn 1.6.0-alpha.0, < 1.6.0-beta.5
saltcorn 1.5.0-beta.0, < 1.5.6
saltcorn < 1.4.6

Affected Packages

npm @saltcorn/server fix: 1.4.6, 1.5.6, 1.6.0-beta.5
euvd saltcorn fix: 1.4.6
euvd saltcorn_1_5_0_beta_0 fix: 1.5.6
euvd saltcorn_1_6_0_alpha_0 fix: 1.6.0-beta.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in the is_relative_url() validation function in packages/server/routes/utils.js, which uses a simplistic string check to distinguish same-origin redirects from cross-origin ones. Modern WHATWG-compliant browsers (Chrome, Firefox, Safari, Edge) normalize backslashes to forward slashes during URL parsing for special schemes including http, https, ftp, ws, and wss. When a URL like /\evil.com/path is provided to a browser with base context http://victim/, the WHATWG parser resolves it to http://evil.com/path. The vulnerable code path decodes the dest parameter twice (once by body-parser middleware, once by explicit decodeURIComponent), then passes it to Express's res.redirect(). Express 5 uses encodeurl 2.0.0, which does not percent-encode backslashes, leaving them verbatim in the Location header. The root cause is CWE-601 (URL Redirection to Untrusted Site, Open Redirect) - the allowlist validation is incomplete and does not account for browser URL normalization behavior. The Saltcorn application is written in Node.js/Express and packaged as npm/@saltcorn/server.

Know when Saltcorn gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 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

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
May 07, 2026 - 20:22 NVD
5.1 (MEDIUM)
CVE Published
May 07, 2026 - 18:54 nvd
UNKNOWN (no severity yet)
CVE Published
May 07, 2026 - 18:54 nvd
MEDIUM 5.1

DescriptionGitHub Advisory

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 2 npm packages depend on @saltcorn/server (2 direct, 0 indirect)

Ecosystem-wide dependent count for version 1.5.0-beta.0.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy