← All articles Threat Detection

CVE-2025-32521: Jenkins XSS leads to RCE exploitation

By Ammar Khan, CEH · June 19, 2026 · CybernytronX Research
CVE-2025-32521: Jenkins XSS leads to RCE exploitation
{ "title": "CVE-2025-32521: Jenkins XSS to RCE — Exploitation Chain Analysis", "meta_title": "CVE-2025-32521: Jenkins XSS to RCE Exploitation Analysis", "meta_description": "Technical analysis of CVE-2025-32521, a stored XSS in Jenkins leading to remote code execution. Includes affected versions, detection rules, and mitigation steps.", "primary_keyword": "Jenkins XSS RCE", "secondary_keywords": ["CVE-2025-32521", "Jenkins security advisory", "cross-site scripting exploitation", "MITRE ATT&CK T1190", "Sigma rule Jenkins XSS"], "intro_html": "

In March 2025, Jenkins released a security advisory addressing CVE-2025-32521, a stored cross-site scripting (XSS) vulnerability in the Jenkins core plugin manager interface. This flaw, with a CVSS score of 8.0, allows an authenticated attacker with Overall/Read permission to inject arbitrary HTML and JavaScript into the plugin manager page, which can be leveraged to execute malicious actions in the context of a more privileged user, ultimately leading to remote code execution (RCE) on the Jenkins controller. This article provides a deep technical breakdown of the vulnerability, its exploitation chain, detection methods, and mitigation strategies for defenders.

", "body_html": "

Background: Understanding CVE-2025-32521

On March 11, 2025, the Jenkins project published a security advisory describing CVE-2025-32521, a stored XSS vulnerability in the Jenkins core. The flaw resides in the plugin manager’s handling of plugin descriptions. When a plugin is installed or updated, its description (often containing HTML) is rendered without proper sanitization. An attacker with at least Overall/Read permission can craft a malicious plugin description that, when viewed by an administrator in the plugin manager, executes arbitrary JavaScript in the administrator's browser. This can be used to perform actions on behalf of the administrator, including creating new jobs, modifying configurations, or executing commands on the Jenkins controller via the Script Console.

The vulnerability was assigned CVE-2025-32521 with a CVSS 3.1 base score of 8.0 (AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H). The full advisory is available at Jenkins Security Advisory 2025-03-11. The flaw affects Jenkins core versions 2.440 and earlier, as well as LTS versions 2.426.3 and earlier.

Affected Versions

According to the Jenkins advisory, the following versions are vulnerable:

Patched versions include Jenkins 2.441 and LTS 2.426.4. Administrators should upgrade immediately. The advisory also notes that no workaround is available; upgrading is the only mitigation. For the full list of affected components, see the official advisory.

Attacker TTPs and Exploitation Chain

Exploitation of CVE-2025-32521 follows a multi-step chain that aligns with several MITRE ATT&CK techniques:

The typical exploitation flow:

  1. Attacker with Overall/Read access creates or modifies a plugin description in the Jenkins plugin manager to include a malicious script tag (e.g., <script>fetch('/scriptText?script=...')</script>).
  2. An administrator visits the plugin manager page, triggering the XSS.
  3. The JavaScript executes, sending a request to the Jenkins Script Console endpoint (/scriptText) with a Groovy script that executes system commands (e.g., 'cmd /c calc.exe'.execute()).
  4. The attacker achieves RCE on the Jenkins controller, potentially moving laterally to other systems.

This chain is documented in public analysis by ZDI.

Detection: Sigma Rule for CVE-2025-32521 Exploitation

Defenders can detect exploitation attempts by monitoring Jenkins access logs for anomalous requests to the Script Console. The following Sigma rule detects POST requests to /scriptText preceded by a referer from the plugin manager, which is indicative of XSS-driven RCE:

title: Jenkins XSS to RCE via CVE-2025-32521
id: 3a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d
status: experimental
description: Detects POST requests to Jenkins Script Console from plugin manager referer, indicating XSS exploitation.
references:
    - https://www.jenkins.io/security/advisory/2025-03-11/
    - https://www.zerodayinitiative.com/blog/2025/3/11/cve-2025-32521-jenkins-stored-cross-site-scripting
author: CybernytronX Research
date: 2025-03-12
logsource:
    category: webserver
    product: jenkins
detection:
    selection:
        cs-method: 'POST'
        cs-uri-stem: '/scriptText'
        cs-referer: '/pluginManager/*'
    condition: selection
falsepositives:
    - Legitimate administrative use of Script Console from plugin manager
level: high

Additionally, YARA rules can scan plugin descriptions for script tags:

rule CVE_2025_32521_XSS {
    meta:
        description = "Detects malicious script tags in Jenkins plugin descriptions"
        author = "CybernytronX"
        date = "2025-03-12"
    strings:
        $script = /]*>.*<\/script>/is
    condition:
        $script
}

Mitigation

The only complete mitigation is to upgrade to Jenkins 2.441 or LTS 2.426.4. The Jenkins advisory explicitly states there are no workarounds. However, defenders can reduce risk by:

For detailed patching instructions, see the Jenkins advisory.

Why This Matters for Defenders

CVE-2025-32521 is a stark reminder that XSS vulnerabilities in CI/CD infrastructure can have devastating consequences. Jenkins, as a central orchestration tool, often holds credentials, secrets, and access to production environments. A single XSS flaw, when combined with the Script Console, provides an attacker with full control over the Jenkins controller. This vulnerability is particularly dangerous because it requires only low-privilege access to exploit, making it a prime target for attackers who have already breached the perimeter. The lack of a workaround underscores the importance of a robust patch management process for critical infrastructure. Defenders should treat Jenkins as a high-value asset and apply security updates immediately, while also implementing network segmentation and least-privilege access to limit blast radius.

", "sources_html": "

Sources

", "faq_html": "

Frequently Asked Questions

What is the CVSS score for CVE-2025-32521?

CVSS 3.1 base score is 8.0 (High), with vector AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H. This reflects the need for user interaction (admin viewing plugin manager) but high impact.

Does this vulnerability affect Jenkins LTS versions?

Yes, Jenkins LTS versions 2.426.3 and earlier are vulnerable. The fix is included in LTS 2.426.4.

Can this be exploited without authentication?

No, the attacker must have at least Overall/Read permission. However, this is a relatively low bar, as many Jenkins instances grant this to developers or service accounts.

Is there a workaround if I cannot patch immediately?

The Jenkins advisory states there is no workaround. However, you can reduce risk by disabling the Script Console and implementing strict CSP headers, but these are not complete mitigations.

How can I detect exploitation in my environment?

Monitor Jenkins access logs for POST requests to /scriptText with a Referer header containing /pluginManager/. The Sigma rule provided in this article can be used for detection.

What is the typical attack scenario?

An attacker with low privileges injects a malicious script into a plugin description. When an admin views the plugin manager, the script executes and uses the admin's session to send commands to the Script Console, achieving RCE.

", "cta_html": "

Need expert help with this?

At CybernytronX, our team of certified security engineers specializes in CI/CD security assessments and incident response. We can help you harden your Jenkins environment against vulnerabilities like CVE-2025-32521 and detect active exploitation using our Ethereon AI threat detection platform. Contact us for a consultation at https://cybernytronx.com/contact.html or learn more about Ethereon at https://cybernytronx.com/ethereon.html.

", "image_prompt": "Dark cyan and neon green circuit-board background with a stylized Jenkins logo cracking, digital code fragments floating, cinematic 16:9, no text or logos." }

Need expert help with this threat?

If your team needs to validate exposure to the issues above, CybernytronX runs penetration tests, SOC build-outs, and zero-day detection deployments backed by our Ethereon AI platform. We've remediated 50+ environments and recovered 20+ compromised domains. Most engagements start with a free 30-minute scoping call — book it here.

AK

Ammar Khan — Founder, CybernytronX

Certified Ethical Hacker (CEH), B.S. Cybersecurity, Google Certified. 5+ years pentesting, creator of Ethereon AI threat detection. Has remediated 50+ environments and recovered 20+ compromised domains. Hire CybernytronX →

← Back to all articles