CVE-2025-12118: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in kevingillispie Schema Scalpel
The Schema Scalpel plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the post title in all versions up to, and including, 1.6.1 due to insufficient input sanitization and output escaping when outputting user-supplied data into JSON-LD schema markup. 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.
AI Analysis
Technical Summary
CVE-2025-12118 is a stored Cross-Site Scripting (XSS) vulnerability classified under CWE-79, found in the Schema Scalpel plugin for WordPress, versions up to and including 1.6.1. The vulnerability stems from insufficient input sanitization and output escaping when user-supplied data, specifically the post title, is embedded into JSON-LD schema markup on web pages. This improper neutralization allows authenticated users with Contributor-level permissions or higher to inject arbitrary JavaScript code into posts. Because the malicious script is stored in the post title and rendered in the schema markup, it executes automatically whenever any user, including administrators or visitors, accesses the compromised page. The vulnerability has a CVSS 3.1 base score of 6.4, reflecting medium severity, with attack vector as network, low attack complexity, requiring privileges (Contributor or above), no user interaction, and a scope change (affecting other components). The impact affects confidentiality and integrity but not availability. No public exploits are known currently, but the vulnerability poses a significant risk due to the ease of exploitation by authenticated users and the potential for widespread impact through stored XSS. The plugin is widely used in WordPress environments, which are popular globally, making the vulnerability relevant to many organizations. The vulnerability was published on November 1, 2025, and assigned by Wordfence. No official patches or fixes have been linked yet, so mitigation requires careful access control and input validation.
Potential Impact
The primary impact of CVE-2025-12118 is the potential for attackers with Contributor-level access to inject persistent malicious scripts into WordPress pages via the Schema Scalpel plugin. This can lead to session hijacking, credential theft, unauthorized actions performed on behalf of users, and defacement of websites. Since the malicious code executes in the context of the victim's browser, it can bypass same-origin policies and access sensitive information or perform actions with the victim's privileges. The vulnerability affects the confidentiality and integrity of user data and site content but does not directly impact availability. Organizations relying on WordPress sites with this plugin are at risk of reputational damage, data breaches, and potential compliance violations. The requirement for authenticated access limits exposure but does not eliminate risk, especially in environments with many contributors or where contributor accounts may be compromised. The scope change in the CVSS vector indicates that the vulnerability can affect components beyond the plugin itself, potentially impacting the broader WordPress site ecosystem.
Mitigation Recommendations
1. Immediately restrict Contributor-level and higher permissions to trusted users only, minimizing the risk of malicious input. 2. Implement strict input validation and sanitization on post titles and any user-supplied data before it is embedded into JSON-LD schema markup. 3. Apply output escaping techniques specifically for JSON-LD contexts to prevent script injection. 4. Monitor and audit posts and pages for suspicious or unexpected script content, especially in schema markup sections. 5. Disable or remove the Schema Scalpel plugin until an official patch or update is released by the vendor. 6. Employ Web Application Firewalls (WAFs) with rules to detect and block XSS payloads targeting JSON-LD or schema markup. 7. Educate content contributors about the risks of injecting untrusted content and enforce security best practices in content management. 8. Keep WordPress core and all plugins updated to the latest versions to reduce exposure to known vulnerabilities. 9. Consider implementing Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts on the site. 10. Regularly back up website data to enable quick recovery in case of compromise.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, France, Netherlands, India, Brazil, Japan, South Korea
CVE-2025-12118: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in kevingillispie Schema Scalpel
Description
The Schema Scalpel plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the post title in all versions up to, and including, 1.6.1 due to insufficient input sanitization and output escaping when outputting user-supplied data into JSON-LD schema markup. 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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-12118 is a stored Cross-Site Scripting (XSS) vulnerability classified under CWE-79, found in the Schema Scalpel plugin for WordPress, versions up to and including 1.6.1. The vulnerability stems from insufficient input sanitization and output escaping when user-supplied data, specifically the post title, is embedded into JSON-LD schema markup on web pages. This improper neutralization allows authenticated users with Contributor-level permissions or higher to inject arbitrary JavaScript code into posts. Because the malicious script is stored in the post title and rendered in the schema markup, it executes automatically whenever any user, including administrators or visitors, accesses the compromised page. The vulnerability has a CVSS 3.1 base score of 6.4, reflecting medium severity, with attack vector as network, low attack complexity, requiring privileges (Contributor or above), no user interaction, and a scope change (affecting other components). The impact affects confidentiality and integrity but not availability. No public exploits are known currently, but the vulnerability poses a significant risk due to the ease of exploitation by authenticated users and the potential for widespread impact through stored XSS. The plugin is widely used in WordPress environments, which are popular globally, making the vulnerability relevant to many organizations. The vulnerability was published on November 1, 2025, and assigned by Wordfence. No official patches or fixes have been linked yet, so mitigation requires careful access control and input validation.
Potential Impact
The primary impact of CVE-2025-12118 is the potential for attackers with Contributor-level access to inject persistent malicious scripts into WordPress pages via the Schema Scalpel plugin. This can lead to session hijacking, credential theft, unauthorized actions performed on behalf of users, and defacement of websites. Since the malicious code executes in the context of the victim's browser, it can bypass same-origin policies and access sensitive information or perform actions with the victim's privileges. The vulnerability affects the confidentiality and integrity of user data and site content but does not directly impact availability. Organizations relying on WordPress sites with this plugin are at risk of reputational damage, data breaches, and potential compliance violations. The requirement for authenticated access limits exposure but does not eliminate risk, especially in environments with many contributors or where contributor accounts may be compromised. The scope change in the CVSS vector indicates that the vulnerability can affect components beyond the plugin itself, potentially impacting the broader WordPress site ecosystem.
Mitigation Recommendations
1. Immediately restrict Contributor-level and higher permissions to trusted users only, minimizing the risk of malicious input. 2. Implement strict input validation and sanitization on post titles and any user-supplied data before it is embedded into JSON-LD schema markup. 3. Apply output escaping techniques specifically for JSON-LD contexts to prevent script injection. 4. Monitor and audit posts and pages for suspicious or unexpected script content, especially in schema markup sections. 5. Disable or remove the Schema Scalpel plugin until an official patch or update is released by the vendor. 6. Employ Web Application Firewalls (WAFs) with rules to detect and block XSS payloads targeting JSON-LD or schema markup. 7. Educate content contributors about the risks of injecting untrusted content and enforce security best practices in content management. 8. Keep WordPress core and all plugins updated to the latest versions to reduce exposure to known vulnerabilities. 9. Consider implementing Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts on the site. 10. Regularly back up website data to enable quick recovery in case of compromise.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2025-10-23T16:07:37.624Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69058f8066e0c23159a8ccff
Added to database: 11/1/2025, 4:41:36 AM
Last enriched: 2/27/2026, 8:07:22 PM
Last updated: 3/24/2026, 1:14:16 AM
Views: 136
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.