CVE-2023-39151: XSS

Published Jul 26, 2023
·
Updated

Jenkins 2.415 and earlier, LTS 2.401.2 and earlier does not sanitize or properly encode URLs in build logs when transforming them into hyperlinks, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to control build log contents.

Other sources

Jenkins applies formatting to the console output of builds, transforming plain URLs into hyperlinks. Jenkins 2.415 and earlier, 2.414 and earlier, and LTS 2.401.2 and earlier does not sanitize or properly encode URLs of these hyperlinks in build logs. This results in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to control build log contents. Jenkins 2.416, 2.414.1, and LTS 2.401.3 encodes URLs of affected hyperlink annotations in build logs.

Jenkins weekly and LTS are vulnerable to cross-site scripting, caused by improper validation of user-supplied input. A remote authenticated attacker could exploit this vulnerability to inject malicious script into a Web page which would be executed in a victim's Web browser within the security context of the hosting Web site, once the page is viewed. An attacker could use this vulnerability to steal the victim's cookie-based authentication credentials.

IBM

Affected Software

5 affected componentsFixes available
maven/org.jenkins-ci.main:jenkins-core>=2.402<2.414.1
2.414.1
maven/org.jenkins-ci.main:jenkins-core=2.415
2.416
maven/org.jenkins-ci.main:jenkins-core<2.401.3
2.401.3
Jenkins Jenkins<=2.415
Jenkins Jenkins<=2.401.2

Event History

Jul 26, 2023
CVE Published
01:54 PM
Data Sourced
01:54 PM
Description
Advisory Published
03:30 PM
Dec 13, 2023
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-39151?

CVE-2023-39151 is a vulnerability in Jenkins 2.415 and earlier, 2.414 and earlier, and LTS 2.401.2 and earlier that allows stored cross-site scripting (XSS) attacks through unsanitized URLs in build logs.

2

What is the severity of CVE-2023-39151?

CVE-2023-39151 has a severity score of 8, indicating a high severity.

3

How does CVE-2023-39151 affect Jenkins?

CVE-2023-39151 affects Jenkins versions 2.415 and earlier, 2.414 and earlier, and LTS 2.401.2 and earlier.

4

What is the CWE ID of CVE-2023-39151?

CVE-2023-39151 is associated with CWE-79 (Cross-site Scripting).

5

How can I mitigate CVE-2023-39151?

To mitigate CVE-2023-39151, it is recommended to update Jenkins to version 2.416, 2.414.1, or 2.401.3, which contain the necessary fixes.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203