← Vulnerability feed

Vulnerability record · CVE-2024-23898 · published 24 January 2024

CVE-2024-23898: Jenkins CLI WebSocket endpoint cross-site hijacking allows command execution

Jenkins · Jenkins

Jenkins 2.217 through 2.441 and LTS 2.222.1 through 2.426.2 fail to validate the origin of requests to the CLI WebSocket endpoint, creating a cross-site WebSocket hijacking flaw. An attacker who lures a victim to a malicious page can ride the victim's authenticated session to run CLI commands on the Jenkins controller.

8.8 CVSS 3.1 High EPSS 67% · top 0.7% CWE-346 · Origin validation error
8.8CVSS 3.1 base score
67%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References
17 Jun 2026Last modified by NVD

Description

Jenkins 2.217 through 2.441 (both inclusive), LTS 2.222.1 through 2.426.2 (both inclusive) does not perform origin validation of requests made through the CLI WebSocket endpoint, resulting in a cross-site WebSocket hijacking (CSWSH) vulnerability, allowing attackers to execute CLI commands on the Jenkins controller.

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

Automated analysis

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

high priorityCVSS 8.8 with high confidentiality, integrity and availability impact and a very high EPSS percentile, though exploitation requires user interaction and no KEV listing exists.

What it is

Jenkins 2.217 through 2.441 and LTS 2.222.1 through 2.426.2 fail to validate the origin of requests to the CLI WebSocket endpoint, creating a cross-site WebSocket hijacking flaw. An attacker who lures a victim to a malicious page can ride the victim's authenticated session to run CLI commands on the Jenkins controller.

Impact

The attacker gains the ability to execute CLI commands on the Jenkins controller with the victim's privileges, which can lead to job manipulation, credential access and code execution on build infrastructure.

Attack surface

Reached over the network through the CLI WebSocket endpoint; no authentication is needed by the attacker, but a logged-in Jenkins user must be induced to visit an attacker-controlled page (UI:R).

Exploitation

Not listed in CISA KEV and no ransomware usage documented, but EPSS is 0.67151 (99.3rd percentile), indicating a high likelihood of exploitation activity; references are vendor advisory and research blog only, with no public exploit tag.

What to do

  • Upgrade Jenkins to a version after 2.441 or LTS after 2.426.2 as fixed in the vendor advisory SECURITY-3315.
  • If immediate upgrade is not possible, disable or restrict the CLI WebSocket endpoint and limit network access to the Jenkins controller.
  • Enforce strict Origin header validation or a reverse proxy that rejects cross-origin WebSocket upgrades.
  • Reduce exposure by placing the Jenkins controller behind a VPN or allowlist rather than the public internet.
  • Audit Jenkins accounts and API tokens for unexpected CLI activity after exposure.

Detection

  • Monitor Jenkins logs for CLI WebSocket connections and CLI command invocations from unexpected source IPs or sessions.
  • Alert on WebSocket upgrade requests to the CLI endpoint carrying foreign or missing Origin headers.
  • Correlate Jenkins CLI activity with browser sessions of users who visited untrusted sites.
  • Review controller audit logs for anomalous job creation, credential access or script execution following CLI use.

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-2024-23898 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.8CVE-2024-23897Jenkins CLI parser arbitrary file read via @ path expansionJenkins 2.441 and earlier, and LTS 2.426.2 and earlier, fails to disable a CLI command parser feature that replaces an '@' character followed by a fi…KEVEPSS 100%analysed9.8CVE-2018-1000861Jenkins Stapler framework URL routing allows remote code executionThe Stapler web framework in Jenkins 2.153 and earlier and LTS 2.138.3 and earlier lets attackers invoke unintended Java methods by requesting crafte…KEVEPSS 98%analysed9.8CVE-2017-1000353Jenkins CLI Java deserialization allows unauthenticated remote code executionJenkins 2.56 and earlier, and 2.46.1 LTS and earlier, deserialize attacker-supplied Java SignedObject data sent to the Jenkins CLI, bypassing the exi…KEVEPSS 100%analysed7.5CVE-2023-44487HTTP/2 Rapid Reset stream cancellation denial of serviceThe HTTP/2 protocol permits a client to cancel many streams quickly, and the server's handling of those resets consumes disproportionate resources. T…KEVEPSS 100%analysed7.5CVE-2015-5317Jenkins Fingerprints pages expose job and build namesJenkins before 1.638 and LTS before 1.625.2 expose sensitive job and build name information through the Fingerprints pages when requested directly. T…KEVEPSS 23%analysed9.8CVE-2021-21690Jenkins path traversal vulnerabilityAgent processes are able to completely bypass file path filtering by wrapping the file operation in an agent file path in Jenkins 2.318 and earlier, …EPSS 2.5%9.8CVE-2021-21691Jenkins link following vulnerabilityCreating symbolic links is possible without the 'symlink' agent-to-controller access control permission in Jenkins 2.318 and earlier, LTS 2.303.2 and…EPSS 2.1%9.8CVE-2021-21692Jenkins path traversal vulnerabilityFilePath#renameTo and FilePath#moveAllChildrenTo in Jenkins 2.318 and earlier, LTS 2.303.2 and earlier only check 'read' agent-to-controller access p…EPSS 2.1%

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