Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-12060: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in francescosganga WP Media Optimizer (.webp)

0
Medium
VulnerabilityCVE-2024-12060cvecve-2024-12060cwe-79
Published: Fri Dec 06 2024 (12/06/2024, 08:24:49 UTC)
Source: CVE Database V5
Vendor/Project: francescosganga
Product: WP Media Optimizer (.webp)

Description

CVE-2024-12060 is a reflected Cross-Site Scripting (XSS) vulnerability in the WP Media Optimizer (. webp) WordPress plugin, affecting all versions up to 1. 4. 0. The flaw arises from improper input sanitization and output escaping of the 'wpmowebp-css-resources' and 'wpmowebp-js-resources' parameters. This allows unauthenticated attackers to inject malicious scripts that execute in the context of a victim's browser if they are tricked into clicking a crafted link. The vulnerability has a CVSS score of 6. 1, indicating medium severity, with a scope change due to the potential to affect user sessions and data confidentiality. No known exploits are currently reported in the wild. Organizations using this plugin on WordPress sites should prioritize patching or applying mitigations to prevent exploitation.

AI-Powered Analysis

AILast updated: 02/26/2026, 06:46:26 UTC

Technical Analysis

CVE-2024-12060 is a reflected Cross-Site Scripting (XSS) vulnerability identified in the WP Media Optimizer (.webp) plugin for WordPress, developed by francescosganga. The vulnerability exists in all versions up to and including 1.4.0 due to insufficient sanitization and escaping of user-supplied input in the parameters 'wpmowebp-css-resources' and 'wpmowebp-js-resources'. These parameters are used during web page generation, and the lack of proper neutralization allows attackers to inject arbitrary JavaScript code. Because the vulnerability is reflected, the malicious script is embedded in a crafted URL or request and executed when a victim clicks the link, causing the script to run in the victim's browser context. This can lead to theft of session cookies, redirection to malicious sites, or other client-side attacks. The vulnerability does not require authentication, increasing its risk profile, but does require user interaction (clicking a link). The CVSS 3.1 base score is 6.1 (medium severity), with vector AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, indicating network attack vector, low attack complexity, no privileges required, user interaction required, scope changed, and low impact on confidentiality and integrity, with no impact on availability. No public exploits or patches are currently available, but the vulnerability is published and should be addressed promptly to prevent potential exploitation.

Potential Impact

The impact of CVE-2024-12060 primarily affects the confidentiality and integrity of user sessions on WordPress sites using the vulnerable WP Media Optimizer plugin. Successful exploitation can lead to theft of session cookies, enabling attackers to impersonate users or administrators, potentially leading to unauthorized access or privilege escalation. It can also facilitate phishing attacks by redirecting users to malicious sites or injecting deceptive content. Although availability is not impacted, the compromise of user trust and potential data leakage can have significant reputational and operational consequences for affected organizations. Since the vulnerability is exploitable without authentication but requires user interaction, widespread exploitation is possible through social engineering campaigns. Organizations running WordPress sites with this plugin are at risk of targeted or opportunistic attacks, especially if they host sensitive user data or provide critical services. The scope change in the CVSS vector indicates that the vulnerability can affect resources beyond the vulnerable component, potentially impacting the entire web application context.

Mitigation Recommendations

To mitigate CVE-2024-12060, organizations should first check for updates or patches from the plugin developer and apply them immediately once available. In the absence of an official patch, administrators should consider disabling or uninstalling the WP Media Optimizer (.webp) plugin to eliminate the attack surface. Implementing a Web Application Firewall (WAF) with rules to detect and block malicious payloads targeting the 'wpmowebp-css-resources' and 'wpmowebp-js-resources' parameters can provide temporary protection. Additionally, site owners should enforce Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts and reduce the impact of XSS attacks. Educating users about the risks of clicking suspicious links and monitoring web server logs for unusual requests targeting these parameters can help detect attempted exploitation. Regular security audits and employing security plugins that scan for XSS vulnerabilities can further enhance protection. Finally, developers should review and improve input validation and output encoding practices in the plugin code to prevent similar issues in future releases.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2024-12-02T20:39:01.491Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6e2bb7ef31ef0b5972c5

Added to database: 2/25/2026, 9:48:27 PM

Last enriched: 2/26/2026, 6:46:26 AM

Last updated: 2/26/2026, 10:03:50 AM

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats