CVE-2025-12711: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in pritenhshah Share to Google Classroom
The Share to Google Classroom plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the share_to_google shortcode in all versions up to, and including, 1.0 due to insufficient input sanitization and output escaping on user supplied attributes. 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-12711 identifies a stored Cross-Site Scripting (XSS) vulnerability in the Share to Google Classroom plugin for WordPress, developed by pritenhshah. This vulnerability arises from improper neutralization of user input during web page generation, specifically within the share_to_google shortcode. The plugin fails to adequately sanitize and escape user-supplied attributes, allowing authenticated users with Contributor-level permissions or higher to inject arbitrary JavaScript code into WordPress pages. Because the injected scripts are stored persistently, they execute every time a user accesses the affected page, potentially compromising user sessions, stealing cookies, or performing unauthorized actions on behalf of users. The vulnerability is exploitable remotely over the network without user interaction but requires the attacker to have at least Contributor-level privileges, which are commonly assigned to trusted users who can add or edit content. The CVSS 3.1 base score is 6.4, reflecting medium severity due to the combination of network attack vector, low attack complexity, and privileges required. The scope is changed (S:C) because the vulnerability affects components beyond the initially vulnerable plugin, potentially impacting the entire WordPress site. No patches or fixes have been officially released at the time of publication, and no known exploits have been observed in the wild. The vulnerability is particularly relevant for organizations using WordPress sites integrated with Google Classroom, especially educational institutions and e-learning platforms. Attackers exploiting this vulnerability could perform persistent XSS attacks, leading to data theft, session hijacking, or further compromise of the WordPress environment.
Potential Impact
For European organizations, especially educational institutions and e-learning platforms that utilize WordPress with the Share to Google Classroom plugin, this vulnerability poses a significant risk. Exploitation could lead to unauthorized access to user sessions, theft of sensitive information such as authentication tokens or personal data, and potential defacement or manipulation of website content. The persistent nature of the stored XSS means that all users visiting the compromised pages are at risk, amplifying the impact. This can undermine trust in educational platforms, lead to data privacy violations under GDPR, and cause operational disruptions. Additionally, attackers could leverage the foothold gained through XSS to escalate privileges or deploy further malware within the affected WordPress environment. Given the widespread use of WordPress in Europe and the growing reliance on digital education tools, the threat could affect a broad range of organizations if not mitigated promptly.
Mitigation Recommendations
To mitigate this vulnerability, European organizations should take the following specific actions: 1) Immediately audit WordPress sites for the presence of the Share to Google Classroom plugin and identify versions in use. 2) Restrict Contributor-level and higher permissions to trusted users only, minimizing the risk of malicious shortcode injection. 3) Implement strict input validation and output escaping for all shortcode attributes, either by applying custom filters or using security plugins that enforce sanitization. 4) Monitor site content for suspicious or unexpected shortcode usage that could indicate exploitation attempts. 5) Employ Web Application Firewalls (WAFs) configured to detect and block XSS payloads targeting the affected shortcode. 6) Regularly back up WordPress sites to enable quick restoration if compromise is detected. 7) Stay informed about official patches or updates from the plugin developer and apply them promptly once available. 8) Educate content contributors about the risks of injecting untrusted code and enforce security best practices in content management. These targeted measures go beyond generic advice by focusing on permission management, content monitoring, and proactive detection tailored to this specific vulnerability.
Affected Countries
United Kingdom, Germany, France, Netherlands, Sweden, Italy, Spain
CVE-2025-12711: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in pritenhshah Share to Google Classroom
Description
The Share to Google Classroom plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the share_to_google shortcode in all versions up to, and including, 1.0 due to insufficient input sanitization and output escaping on user supplied attributes. 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
Technical Analysis
CVE-2025-12711 identifies a stored Cross-Site Scripting (XSS) vulnerability in the Share to Google Classroom plugin for WordPress, developed by pritenhshah. This vulnerability arises from improper neutralization of user input during web page generation, specifically within the share_to_google shortcode. The plugin fails to adequately sanitize and escape user-supplied attributes, allowing authenticated users with Contributor-level permissions or higher to inject arbitrary JavaScript code into WordPress pages. Because the injected scripts are stored persistently, they execute every time a user accesses the affected page, potentially compromising user sessions, stealing cookies, or performing unauthorized actions on behalf of users. The vulnerability is exploitable remotely over the network without user interaction but requires the attacker to have at least Contributor-level privileges, which are commonly assigned to trusted users who can add or edit content. The CVSS 3.1 base score is 6.4, reflecting medium severity due to the combination of network attack vector, low attack complexity, and privileges required. The scope is changed (S:C) because the vulnerability affects components beyond the initially vulnerable plugin, potentially impacting the entire WordPress site. No patches or fixes have been officially released at the time of publication, and no known exploits have been observed in the wild. The vulnerability is particularly relevant for organizations using WordPress sites integrated with Google Classroom, especially educational institutions and e-learning platforms. Attackers exploiting this vulnerability could perform persistent XSS attacks, leading to data theft, session hijacking, or further compromise of the WordPress environment.
Potential Impact
For European organizations, especially educational institutions and e-learning platforms that utilize WordPress with the Share to Google Classroom plugin, this vulnerability poses a significant risk. Exploitation could lead to unauthorized access to user sessions, theft of sensitive information such as authentication tokens or personal data, and potential defacement or manipulation of website content. The persistent nature of the stored XSS means that all users visiting the compromised pages are at risk, amplifying the impact. This can undermine trust in educational platforms, lead to data privacy violations under GDPR, and cause operational disruptions. Additionally, attackers could leverage the foothold gained through XSS to escalate privileges or deploy further malware within the affected WordPress environment. Given the widespread use of WordPress in Europe and the growing reliance on digital education tools, the threat could affect a broad range of organizations if not mitigated promptly.
Mitigation Recommendations
To mitigate this vulnerability, European organizations should take the following specific actions: 1) Immediately audit WordPress sites for the presence of the Share to Google Classroom plugin and identify versions in use. 2) Restrict Contributor-level and higher permissions to trusted users only, minimizing the risk of malicious shortcode injection. 3) Implement strict input validation and output escaping for all shortcode attributes, either by applying custom filters or using security plugins that enforce sanitization. 4) Monitor site content for suspicious or unexpected shortcode usage that could indicate exploitation attempts. 5) Employ Web Application Firewalls (WAFs) configured to detect and block XSS payloads targeting the affected shortcode. 6) Regularly back up WordPress sites to enable quick restoration if compromise is detected. 7) Stay informed about official patches or updates from the plugin developer and apply them promptly once available. 8) Educate content contributors about the risks of injecting untrusted code and enforce security best practices in content management. These targeted measures go beyond generic advice by focusing on permission management, content monitoring, and proactive detection tailored to this specific vulnerability.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2025-11-04T19:40:13.947Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6912b13414bc3e00ba783dd4
Added to database: 11/11/2025, 3:44:52 AM
Last enriched: 11/11/2025, 4:02:35 AM
Last updated: 11/11/2025, 4:36:58 AM
Views: 2
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.
Related Threats
CVE-2025-12880: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in jobayer534 Progress Bar Blocks for Gutenberg
MediumCVE-2025-12813: CWE-94 Improper Control of Generation of Code ('Code Injection') in strix-bubol5 Holiday class post calendar
CriticalCVE-2025-12754: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in rampantlogic Geopost
MediumCVE-2025-12753: CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in sagortouch Chart Expert
MediumCVE-2025-12672: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in nuvuscripts Flickr Show
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.