CVE-2025-27625
Medium · 4.3Jenkins Open Redirect vulnerability
CVSS
4.3
EPSS
0.6%
Published
Mar 6, 2025
CISA due date
—
Cloudanix analysis
An attacker could make a real Jenkins link send people to a fake website, increasing the chance of stolen passwords or other fraud.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Other
- Component
- Application
- Class
- Open Redirect
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Jenkins 2.499 and earlier, and Jenkins LTS 2.492.1 and earlier, incorrectly treat redirect targets beginning with backslash characters as safe internal destinations. Browsers can interpret leading backslashes as a scheme-relative or network-path redirect, causing a Jenkins-generated URL to send the user to an attacker-controlled external site. The flaw does not directly provide code execution or authentication bypass, but it enables abuse of trusted Jenkins URLs for phishing, credential harvesting, session-token theft attempts, or user redirection into follow-on attacks.
Why it matters to the business
The primary risk is trust abuse: users may click a legitimate-looking Jenkins link and be silently redirected to a malicious site. For organizations where Jenkins is part of the software delivery pipeline, successful phishing can lead to stolen developer credentials, compromise of build systems, source code exposure, or unauthorized changes to CI/CD jobs. This issue is not currently listed in CISA KEV, is not known to be used in ransomware campaigns, and has low EPSS, but it remains relevant because Jenkins often has privileged access to repositories, secrets, and deployment workflows.
How an attack unfolds
An attacker identifies a Jenkins feature that accepts or constructs a post-action redirect URL from partially user-controlled input. They craft a Jenkins URL where the redirect destination begins with backslash characters, commonly encoded in the request so it passes through mail gateways, proxies, or application routing. A vulnerable Jenkins instance accepts the value as an internal or safe redirect. When a targeted user follows the link, Jenkins responds with a redirect that the browser interprets as an external network-path destination and sends the user to the attacker-controlled domain. The attacker can then present a fake Jenkins login page, collect credentials, deliver malware, or guide the user through a social-engineering workflow. Any stolen credentials or tokens can then be used in separate follow-on activity against Jenkins, source control, artifact repositories, or deployment systems.
How to fix it
Upgrade Jenkins to version 2.500 or later, or Jenkins LTS 2.492.2 or later. The upstream fix rejects redirect targets that begin with backslash characters and treats them as unsafe. For source-based deployments, include commit 02d4db379ac965641bb1382515c834cf4966ec5a or a later Jenkins revision containing that fix. As defense in depth, place Jenkins behind authentication, restrict external access to Jenkins administrative and developer interfaces, enforce phishing-resistant MFA for Jenkins and related identity providers, and avoid allowing Jenkins to be used as an unauthenticated open redirection point. Security controls such as reverse proxies or WAFs can also block requests containing encoded or literal double-backslash redirect targets in URL parameters, but these should be considered compensating controls rather than a replacement for upgrading.
How to confirm the fix worked
Confirm the installed Jenkins version is 2.500 or later, or LTS 2.492.2 or later, using the Jenkins UI, package manager, container image tag, startup logs, or CLI/version endpoint appropriate to the deployment. Validate that the running build includes the upstream fix commit 02d4db379ac965641bb1382515c834cf4966ec5a if using a source build. In an authorized test environment, send a request to a Jenkins redirecting workflow with a redirect target beginning with encoded or literal backslashes, such as a double-backslash network-path reference. A fixed instance should reject the redirect, ignore the unsafe target, or redirect only to a safe internal Jenkins location; it should not return a 3xx Location header that begins with backslashes or causes the browser to navigate to an external host. Review reverse proxy and application logs after testing to ensure the unsafe redirect was not emitted.
Typical attack path
- Identify an exposed or reachable Jenkins instance running Jenkins 2.499 or earlier, or LTS 2.492.1 or earlier.
- Find a Jenkins workflow, page, or action that performs a redirect using partially user-controlled input.
- Craft a URL to the Jenkins instance containing a redirect target that starts with backslash characters, such as an encoded double-backslash sequence.
- Send the legitimate-looking Jenkins URL to a target user through email, chat, documentation, issue trackers, or other trusted collaboration channels.
- User opens the Jenkins URL; the vulnerable instance issues a redirect that the browser interprets as an external destination.
- User lands on an attacker-controlled phishing or payload site that imitates Jenkins or another trusted service.
- Attacker harvests credentials, tokens, or other sensitive information and uses them for separate unauthorized access attempts.
How to detect it
Detection should focus on evidence of attempted or successful open-redirect abuse and any follow-on account activity. Review HTTP access logs from Jenkins, load balancers, reverse proxies, WAFs, and CDN services for requests to Jenkins containing literal backslashes or encoded backslashes in query strings, form parameters, or redirect-related parameters. Look for 3xx responses where the response Location header begins with backslashes or resolves to an external, non-Jenkins domain. If response headers are not logged by default, enable them temporarily at the proxy or WAF layer for investigation. Correlate suspicious redirect requests with email-security telemetry, chat messages, helpdesk phishing reports, and browser/proxy logs showing users navigating from a Jenkins hostname to unfamiliar external domains. For possible successful phishing, review identity-provider logs and Jenkins audit/security logs for unusual login locations, failed login bursts, new API token creation, unexpected personal access token usage, permission changes, credential access, new or modified jobs, build script changes, and unexpected deployments shortly after the redirect event. Because this vulnerability primarily enables phishing rather than server compromise, absence of server-side malware artifacts does not rule out exploitation.
- %5C%5C
- %255C%255C
- \\\\
- Location: \\
- Location: %5C%5C
- http_status=302
- status=302
- http_status=303
- status=303
- http_status=307
- status=307
- http_status=308
- status=308
- redirect=%5C%5C
- redirect=%255C%255C
- url=%5C%5C
- url=%255C%255C
- return=%5C%5C
- return=%255C%255C
- returnUrl=%5C%5C
- returnUrl=%255C%255C
- target=%5C%5C
- target=%255C%255C
- from=%5C%5C
- from=%255C%255C
- next=%5C%5C
- next=%255C%255C
What your security team should do
- Inventory Jenkins controllers and confirm none are running Jenkins 2.499 or earlier, or LTS 2.492.1 or earlier.
- Prioritize upgrades to Jenkins 2.500 or later, or LTS 2.492.2 or later, especially for internet-facing Jenkins instances or instances used by developers, release engineers, and administrators.
- Search web, reverse proxy, WAF, and Jenkins access logs for redirect-related requests containing literal or URL-encoded backslash sequences.
- Add temporary WAF or reverse-proxy detection for redirect parameters containing double backslashes, including encoded forms such as %5C%5C and double-encoded forms such as %255C%255C.
- Review recent phishing reports and user-submitted suspicious links for legitimate Jenkins hostnames followed by unusual redirect parameters or encoded backslashes.
- Ensure Jenkins and associated identity providers require MFA, preferably phishing-resistant MFA, to reduce impact if users are redirected to credential-harvesting pages.
- Educate developers and administrators that Jenkins links can be abused for phishing on unpatched systems and that unexpected reauthentication prompts should be reported.
- Monitor for follow-on activity after suspected exploitation, including unusual Jenkins logins, new API tokens, job configuration changes, credential access, or unexpected build/deployment activity.
The record
Various features in Jenkins redirect users to partially user-controlled URLs inside Jenkins. To prevent open redirect vulnerabilities, Jenkins limits redirections to safe URLs (neither absolute nor scheme-relative/network-path reference). In Jenkins 2.499 and earlier, LTS 2.492.1 and earlier, redirects starting with backslash (`\`) characters are considered safe. This allows attackers to perform phishing attacks by having users go to a Jenkins URL that will forward them to a different site, because browsers interpret these characters as part of scheme-relative redirects. Jenkins 2.500, LTS 2.492.2 considers redirects to URLs starting with backslash (`\`) characters to be unsafe, rejecting such redirects.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Maven | org.jenkins-ci.main:jenkins-core | 0 | 2.492.2 |
| Maven | org.jenkins-ci.main:jenkins-core | 2.493 | 2.500 |
| Bitnami | jenkins | 2.493.0 | No fix |
| Bitnami | jenkins | 2.493.0 | 2.504.1 |
| Chainguard | jenkins-2.492 | 0 | 2.492.3-r4 |
| maven | org.jenkins-ci.main/jenkins-core | 2.493 | 2.500 |
Related vulnerabilities
- GHSA-85h6-5m3v-gx37 Jenkins has a stored XSS vulnerability in node offline cause description Also affects org.jenkins-ci.main:jenkins-core
- GHSA-wfhp-qgm8-5p5c Jenkins has a build information disclosure vulnerability through Run Parameter Also affects org.jenkins-ci.main:jenkins-core
- CVE-2026-27099 Jenkins 2.483 through 2.550 (both inclusive), LTS 2.492.1 through 2.541.1 (both… Also affects org.jenkins-ci.main:jenkins-core
- CVE-2026-27100 Jenkins 2.550 and earlier, LTS 2.541.1 and earlier accepts Run Parameter values that… Also affects org.jenkins-ci.main:jenkins-core
- GHSA-6837-qgrc-x5p6 Jenkins has a CSRF vulnerability on the login form Also affects org.jenkins-ci.main:jenkins-core
- GHSA-9p56-p6mw-w8qc Jenkins has a Denial of service vulnerability in HTTP-based CLI Also affects org.jenkins-ci.main:jenkins-core
- GHSA-fxj7-6v9w-xc76 Jenkins's build authorization token is stored and displayed in plain text Also affects org.jenkins-ci.main:jenkins-core
- GHSA-hxjg-2jvf-h3rx Jenkins's build authorization token is stored and displayed in plain text Also affects org.jenkins-ci.main:jenkins-core