CVE-2023-40346 Jenkins Shortcut Job Plugin stored cross-site scripting vulnerability
Attackers with job configuration privileges can inject malicious scripts via shortcut URLs, leading to stored XSS and potential session hijacking.
- 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-2023-40346?
CVE-2023-40346 is a medium-severity cross-site scripting vulnerability in Jenkins Shortcut Job Plugin, published on 16 Aug 2023. 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 Shortcut Job Plugin 0.4 and earlier does not escape the shortcut redirection URL, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to configure shortcut jobs.
Weakness: CWE-79
Which versions are affected by CVE-2023-40346?
2 open source packages ship an affected version, including io.jenkins.plugins:shortcut-job. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
io.jenkins.plugins:shortcut-job Maven | All versions | 0.5 |
io.jenkins.plugins:shortcut-job Maven | All versions | 0.5 |
Products include Jenkins Shortcut Job.
How do I fix CVE-2023-40346?
Upgrade io.jenkins.plugins:shortcut-job to 0.5 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-2023-40346 being exploited?
There is no known exploitation of CVE-2023-40346 in the wild and no public exploit code.
Sources
Also known as GHSA-jg35-vf67-gg2j.