← Vulnerability feed

Vulnerability record · CVE-2023-25762 · published 15 February 2023

CVE-2023-25762: Jenkins Pipeline Build Step Plugin stored XSS via unescaped job names

Jenkins · Pipeline\

Jenkins Pipeline: Build Step Plugin 2.18 and earlier fails to escape job names inside a JavaScript expression in the Pipeline Snippet Generator, creating a stored cross-site scripting flaw. An attacker who can control job names can plant script that runs in the browser of a user viewing the Snippet Generator, which matters because Jenkins sessions often carry broad build and administrative privileges.

5.4 CVSS 3.1 Medium EPSS 81% · top 0.4% CWE-79 · Cross-site scripting
5.4CVSS 3.1 base score
81%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
4References
17 Jun 2026Last modified by NVD

Description

Jenkins Pipeline: Build Step Plugin 2.18 and earlier does not escape job names in a JavaScript expression used in the Pipeline Snippet Generator, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to control job names.

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

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

medium priorityCVSS rates it medium (5.4) with required privileges and user interaction, but the very high EPSS score and stored nature warrant prompt patching.

What it is

Jenkins Pipeline: Build Step Plugin 2.18 and earlier fails to escape job names inside a JavaScript expression in the Pipeline Snippet Generator, creating a stored cross-site scripting flaw. An attacker who can control job names can plant script that runs in the browser of a user viewing the Snippet Generator, which matters because Jenkins sessions often carry broad build and administrative privileges.

Impact

An attacker gains script execution in the victim's Jenkins session, allowing actions as that user such as reading data, altering jobs, or performing privileged operations the victim is authorized for.

Attack surface

Reached over the network through the Jenkins web UI, specifically the Pipeline Snippet Generator rendering a malicious job name. The vector requires low privileges and user interaction (PR:L/UI:R), so the attacker needs an account able to set job names and must lure a user to the affected page.

Exploitation

Not listed in CISA KEV and no public exploit or exploitation tags appear in the references, but EPSS is high at 0.814 (99.6th percentile), indicating elevated predicted likelihood of exploitation activity.

What to do

  • Upgrade Jenkins Pipeline: Build Step Plugin past version 2.18 to the fixed release named in the Jenkins security advisory 2023-02-15 (SECURITY-3019).
  • If immediate upgrade is not possible, restrict who can create or rename jobs and limit access to the Pipeline Snippet Generator.
  • Review and sanitize existing job names for HTML or JavaScript characters that could be rendered unescaped.
  • Apply Content-Security-Policy headers on the Jenkins instance to reduce script execution impact.
  • Audit Jenkins accounts for least privilege so a compromised session has limited reach.

Detection

  • Search Jenkins job names and configuration for suspicious HTML or script payloads.
  • Monitor Jenkins access logs for requests to the Pipeline Snippet Generator from unusual accounts or times.
  • Alert on unexpected changes to job names or Pipeline configuration in Jenkins audit logs.
  • Watch for outbound or injected script patterns in Jenkins HTTP responses tied to job name rendering.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2023-25762 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.9CVE-2019-1003030Jenkins Pipeline Groovy Plugin sandbox bypass allows arbitrary code executionThe Jenkins Pipeline: Groovy Plugin (2.63 and earlier) contains a sandbox bypass in CpsGroovyShell.java. Attackers who can control pipeline scripts c…KEVEPSS 97%analysed9.9CVE-2022-43402Jenkins pipeline\ vulnerabilityA sandbox bypass vulnerability involving various casts performed implicitly by the Groovy language runtime in Jenkins Pipeline: Groovy Plugin 2802.v5…EPSS 1.3%9.8CVE-2019-1003041Jenkins pipeline\ vulnerabilityA sandbox bypass vulnerability in Jenkins Pipeline: Groovy Plugin 2.64 and earlier allows attackers to invoke arbitrary constructors in sandboxed scr…EPSS 3.4%8.8CVE-2022-43407Jenkins pipeline\ cross-site request forgery vulnerabilityJenkins Pipeline: Input Step Plugin 451.vf1a_a_4f405289 and earlier does not restrict or sanitize the optionally specified ID of the 'input' step, wh…EPSS 0.53%8.8CVE-2022-25181Jenkins pipeline\ vulnerabilityA sandbox bypass vulnerability in Jenkins Pipeline: Shared Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier allows attackers with Item/Configure…EPSS 1.6%8.8CVE-2022-25182Jenkins pipeline\ vulnerabilityA sandbox bypass vulnerability in Jenkins Pipeline: Shared Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier allows attackers with Item/Configure…EPSS 1.6%8.8CVE-2022-25183Jenkins pipeline\ vulnerabilityJenkins Pipeline: Shared Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier uses the names of Pipeline libraries to create cache directories witho…EPSS 1.6%8.8CVE-2022-25173Jenkins pipeline\ os command injection vulnerabilityJenkins Pipeline: Groovy Plugin 2648.va9433432b33c and earlier uses the same checkout directories for distinct SCMs when reading the script file (typ…EPSS 1.4%

Source: NIST National Vulnerability Database (record CVE-2023-25762), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.