CVE-2023-28678 Jenkins Cppcheck Plugin vulnerable to stored cross-site scripting (XSS)
Attackers can inject malicious scripts via Cppcheck report files, leading to stored XSS in the Jenkins UI.
- 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
- None listed
What is CVE-2023-28678?
CVE-2023-28678 is a medium-severity cross-site scripting vulnerability in Jenkins Cppcheck Plugin, published on 23 Mar 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 Cppcheck Plugin 1.26 and earlier does not escape file names from Cppcheck report files before showing them on the Jenkins UI, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to control report file contents.
Weakness: CWE-79
Which versions are affected by CVE-2023-28678?
2 open source packages ship an affected version, including org.jenkins-ci.plugins:cppcheck. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:cppcheck Maven | All versions to 1.26 | None |
org.jenkins-ci.plugins:cppcheck Maven | All versions to 1.26 | None |
Products include Jenkins Cppcheck.
How do I fix CVE-2023-28678?
No fix has been published for CVE-2023-28678 yet. Limit exposure of the affected software until one is available.
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-28678 being exploited?
There is no known exploitation of CVE-2023-28678 in the wild and no public exploit code.
Sources
Also known as GHSA-j927-269r-96xw.