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 package | Versions | Reported by |
|---|---|---|
| Jenkins project Jenkins | from 2.321 before unspecified, from unspecified up to 2.355, from LTS 2.332.1 before unspecified, from unspecified up to LTS 2.332.3 | CVE List |
| org.jenkins-ci.main:jenkins-core (Maven) | from 2.350 before 2.356, from 2.346 before 2.346.1, before 2.332.4 | GitHub Advisory Database |
| jenkins jenkins | from 2.321 up to 2.355, from 2.332.1 up to 2.332.3 | NVD |
| jenkins (Bitnami) | from 2.321.0 before 2.355.1 | Bitnami Vulnerability Database |
All scores
| GitHub | 8.0high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| Bitnami Vulnerability Database | medium 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
| https://www.jenkins.io/security/advisory/2022-06-22/#SECURITY-2781 | advisory, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-34171 | advisory, web | |
| https://github.com/jenkinsci/jenkins | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-34171 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7f84-p6r5-jr6q changed 2023-12-06 | CC-BY-4.0 |
| NVD | CVE-2022-34171 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-JENKINS-2022-34171 changed 2026-09-08 | Apache-2.0 |