CVE-2024-23905 Content-Security-Policy disabled by Red Hat Dependency Analytics Jenkins Plugin
Attackers can execute arbitrary scripts in Jenkins workspaces because the plugin disables Content-Security-Policy protections for user-generated content.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-23905?
CVE-2024-23905 is a medium-severity cross-site scripting vulnerability in Jenkins Red Hat Dependency Analytics Plugin, published on 24 Jan 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Jenkins Red Hat Dependency Analytics Plugin 0.7.1 and earlier programmatically disables Content-Security-Policy protection for user-generated content in workspaces, archived artifacts, etc. that Jenkins offers for download.
Weakness: CWE-79
Which versions are affected by CVE-2024-23905?
2 open source packages ship an affected version, including io.jenkins.plugins:redhat-dependency-analytics. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
io.jenkins.plugins:redhat-dependency-analytics Maven | All versions | 0.9.0 |
io.jenkins.plugins:redhat-dependency-analytics Maven | All versions | 0.9.0 |
Products include Jenkins Red Hat Dependency Analytics.
How do I fix CVE-2024-23905?
Upgrade io.jenkins.plugins:redhat-dependency-analytics to 0.9.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-23905 being exploited?
There is no known exploitation of CVE-2024-23905 in the wild and no public exploit code.
Sources
Also known as GHSA-x22x-5pp9-8v7f.