CVE-2021-21610: Reflected XSS vulnerability in Jenkins markup formatter preview
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.53648%
CWE
Published
5/24/2022
Updated
12/14/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.jenkins-ci.main:jenkins-core | maven | <= 2.263.1 | 2.263.2 |
| org.jenkins-ci.main:jenkins-core | maven | >= 2.264, <= 2.274 | 2.275 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the preview endpoint accepting GET requests and lacking security headers. The commit shows the patched version adds @POST annotation to doPreviewDescription and introduces CSP headers, while adding a separate GET handler that blocks unsafe access. In vulnerable versions, the original doPreviewDescription method was accessible via GET requests without security headers, making it the entry point for XSS payloads when combined with unsafe markup formatters.