HIGH 8.0

CVE-2023-39151

Jenkins Stored Cross-site Scripting vulnerability

Description

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.jenkins-ci.main » jenkins-core
< 2.401.3>= 2.402, < 2.414.1>= 2.415, < 2.416
2.401.3, 2.414.1, 2.416

Blast radius

1affected artifacts
7,003affected versions
114dependent artifacts (est.)
9,777dependent versions

55% of the dependent artifacts (63) still pull an affected version in their latest release.

DepthDependent versions
Direct
8,521
2 hops
1,048
3 hops
35
4 hops
81
5 hops
26
6 hops
66

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.