CVE-2024-23898 is a cross-site WebSocket hijacking vulnerability in the Jenkins CLI WebSocket endpoint. Jenkins weekly releases 2.217 through 2.441 and Jenkins LTS releases 2.222.1 through 2.426.2 fail to validate the Origin of WebSocket connection requests. A malicious website can consequently establish a WebSocket connection to a Jenkins controller in an authenticated victim's browser and use that victim's Jenkins session context to issue CLI commands.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).
This repository is a proof-of-concept (PoC) exploit for CVE-2024-23898, a cross-site WebSocket hijacking vulnerability in Jenkins (versions 2.217-2.441). The exploit demonstrates how an attacker can hijack a Jenkins admin session by tricking the victim into visiting a malicious site while logged in. The repository includes Python Flask applications (evilApp.py, improvedEvilApp.py) that serve HTML/JavaScript payloads to initiate WebSocket connections to the Jenkins CLI endpoint (ws://localhost:8080/cli/ws). These scripts craft and send binary WebSocket frames to execute arbitrary CLI commands (e.g., 'who-am-i', 'help') as the authenticated admin. The exploit can be extended to execute a Groovy payload via the Jenkins script console, spawning a reverse shell to the attacker's machine. Supporting files include a Docker environment for Jenkins and a sample Groovy reverse shell payload. The attack vector is primarily browser-based (cross-site WebSocket hijacking), leveraging network access to the Jenkins CLI WebSocket endpoint. The repository is structured with demo applications, setup instructions, and legacy PoC files, providing a comprehensive environment for demonstrating the exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
Cross-site WebSocket hijacking vulnerability in Jenkins.
Cross-site WebSocket hijacking vulnerability in Jenkins.
Cross-site WebSocket hijacking vulnerability in Jenkins.
A Jenkins CLI WebSocket endpoint origin-validation flaw that permits cross-site WebSocket hijacking and can allow an attacker to execute Jenkins CLI commands on the controller.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.