CVE-2022-34171
JSON

5.4medium

Cross-site Scripting vulnerability in Jenkins

Severity
5.4medium CVSS:3.1 by NVD
Exploit likelihood
1.58% (higher than 76% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
jenkins
Also known as
GHSA-7f84-p6r5-jr6qBIT-JENKINS-2022-34171

Description

In Jenkins 2.321 through 2.355 (both inclusive) and LTS 2.332.1 through LTS 2.332.3 (both inclusive) 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, resulting in a cross-site scripting (XSS) vulnerability.

Affected

Product or packageVersionsReported by
Jenkins project Jenkinsfrom 2.321 before unspecified, from unspecified up to 2.355, from LTS 2.332.1 before unspecified, from unspecified up to LTS 2.332.3CVE List
org.jenkins-ci.main:jenkins-core (Maven)from 2.350 before 2.356, from 2.346 before 2.346.1, before 2.332.4GitHub Advisory Database
jenkins jenkinsfrom 2.321 up to 2.355, from 2.332.1 up to 2.332.3NVD
jenkins (Bitnami)from 2.321.0 before 2.355.1Bitnami Vulnerability Database

All scores

GitHub8.0high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:P/A:N
Bitnami Vulnerability Databasemedium rating

Classification

What each source says

CVE List

In Jenkins 2.321 through 2.355 (both inclusive) and LTS 2.332.1 through LTS 2.332.3 (both inclusive) 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, resulting in a cross-site scripting (XSS) vulnerability.

GitHub Advisory Database

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.

NVD (es)

En Jenkins versiones 2.321 hasta 2.355 (ambas incluyéndolas) y LTS 2.332.1 hasta LTS 2.332.3 (ambas incluyéndolas) la salida HTML generada para nuevos iconos SVG basados en símbolos incluye el atributo "title" de "l:ionicon" (hasta Jenkins 2.334) y el atributo "alt" de "l:icon" (desde Jenkins versión 2.335) sin escaparse, resultando en una vulnerabilidad de tipo cross-site scripting (XSS)

References

Sources

SourceRecordLicence
CVE ListCVE-2022-34171 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-7f84-p6r5-jr6q changed 2023-12-06CC-BY-4.0
NVDCVE-2022-34171 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-JENKINS-2022-34171 changed 2026-09-08Apache-2.0