HIGH 8.0

CVE-2022-34171

Cross-site Scripting vulnerability in Jenkins

Description

Since Jenkins 2.321 and LTS 2.332.1, the HTML output generated for new symbol-based SVG icons includes the title attribute of l:ionicon until Jenkins 2.334 and alt attribute of l:icon since Jenkins 2.335 without further escaping.

This vulnerability is known to be exploitable by attackers with Job/Configure permission.

Jenkins 2.356, LTS 2.332.4 and LTS 2.346.1 addresses this vulnerability, the title attribute of l:ionicon (Jenkins LTS 2.332.4) and alt attribute of l:icon (Jenkins 2.356 and LTS 2.346.1) are escaped in the generated HTML output.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.jenkins-ci.main » jenkins-core
< 2.332.4>= 2.346, < 2.346.1>= 2.350, < 2.356
2.332.4, 2.346.1, 2.356

Blast radius

1affected artifacts
4,106affected versions
109dependent artifacts (est.)
6,299dependent versions

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

DepthDependent versions
Direct
5,212
2 hops
879
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.

References

Advisorynvd.nist.gov
Packagegithub.com
Webjenkins.io