Medium
Security advisory
Jenkins Flaky Test Handler Plugin 1.2.2 and earlier does not escape JUnit test contents when showing them on the Jenkins UI, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to control JUnit report file contents.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-40342
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 05:08 UTC · Revision 1
Source evidence
Jenkins Flaky Test Handler Plugin 1.2.2 and earlier does not escape JUnit test contents when showing them on the Jenkins UI, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to control JUnit report file contents.
osv:CVE-2023-40342
Complete source record
{
"id": "af6547e55bbfd6939c9205b92cf05a778f73b571e5cd229384c2659f0c2ea0a8",
"url": "https://osv.dev/vulnerability/CVE-2023-40342",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2023-40342",
"summary": "Jenkins Flaky Test Handler Plugin 1.2.2 and earlier does not escape JUnit test contents when showing them on the Jenkins UI, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to control JUnit report file contents.",
"evidence": "osv:CVE-2023-40342",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2023-40342",
"aliases": [
"CVE-2023-40342",
"GHSA-hv48-hgp6-xpqf"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/jenkinsci/flaky-test-handler-plugin",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "c71b82ab3318f7f600c39a2aef19daf64dbb69a2"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:jenkins:flaky_test_handler:*:*:*:*:*:jenkins:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.2.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"flaky-test-handler-1.2.2",
"flaky-test-handler-1.2.1",
"flaky-test-handler-1.2.0",
"flaky-test-handler-1.1.0",
"flaky-test-handler-1.0.4",
"flaky-test-handler-1.0.3",
"flaky-test-handler-1.0.2-4",
"flaky-test-handler-1.0.2-3",
"flaky-test-handler-1.0.2-2",
"flaky-test-handler-1.0.2",
"flaky-test-handler-1.0.1-fix-deprecated-code",
"1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-40342.json"
}
}
],
"modified": "2026-10-24T10:30:24.948224655Z",
"provider": "osv",
"references": [
"https://www.jenkins.io/security/advisory/2023-08-16/#SECURITY-3223"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2023-40342",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 431259,
"published_at": "2023-08-16T15:15:11.753+00:00"
}