CVE-2026-12732: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in thimpress LearnPress – WordPress LMS Plugin for Create and Sell Online Courses
LearnPress WordPress LMS plugin versions up to and including 4.4.0 are vulnerable to stored cross-site scripting (XSS) via the 'class_wrapper_form' shortcode attribute. The vulnerability arises from improper input sanitization and output escaping, allowing authenticated users with contributor-level access or higher to inject malicious scripts that execute when other users view the affected pages.
AI Analysis
Technical Summary
CVE-2026-12732 is a stored cross-site scripting vulnerability in the LearnPress WordPress LMS plugin (up to version 4.4.0). The issue occurs because the 'class_wrapper_form' shortcode attribute is inserted directly into an HTML class attribute without proper escaping (missing esc_attr()), specifically in the FilterCourseTemplate::sections() method. Additionally, the FilterCourseShortcode::render() handler does not filter shortcode attributes, allowing raw user input to flow into the template. This enables authenticated attackers with contributor-level permissions or higher to inject arbitrary JavaScript that executes in the context of users viewing the injected pages.
Potential Impact
An attacker with contributor-level or higher access can inject persistent malicious scripts into pages via the vulnerable shortcode attribute. These scripts execute in the browsers of users who visit the affected pages, potentially leading to session hijacking, defacement, or other client-side attacks. The vulnerability does not impact availability but affects confidentiality and integrity of user sessions and data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict contributor-level access to trusted users only and avoid using the vulnerable shortcode attribute. Monitor vendor channels for updates and apply official patches promptly once released.
CVE-2026-12732: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in thimpress LearnPress – WordPress LMS Plugin for Create and Sell Online Courses
Description
LearnPress WordPress LMS plugin versions up to and including 4.4.0 are vulnerable to stored cross-site scripting (XSS) via the 'class_wrapper_form' shortcode attribute. The vulnerability arises from improper input sanitization and output escaping, allowing authenticated users with contributor-level access or higher to inject malicious scripts that execute when other users view the affected pages.
CVSS v3.1
Score 6.4medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-12732 is a stored cross-site scripting vulnerability in the LearnPress WordPress LMS plugin (up to version 4.4.0). The issue occurs because the 'class_wrapper_form' shortcode attribute is inserted directly into an HTML class attribute without proper escaping (missing esc_attr()), specifically in the FilterCourseTemplate::sections() method. Additionally, the FilterCourseShortcode::render() handler does not filter shortcode attributes, allowing raw user input to flow into the template. This enables authenticated attackers with contributor-level permissions or higher to inject arbitrary JavaScript that executes in the context of users viewing the injected pages.
Potential Impact
An attacker with contributor-level or higher access can inject persistent malicious scripts into pages via the vulnerable shortcode attribute. These scripts execute in the browsers of users who visit the affected pages, potentially leading to session hijacking, defacement, or other client-side attacks. The vulnerability does not impact availability but affects confidentiality and integrity of user sessions and data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict contributor-level access to trusted users only and avoid using the vulnerable shortcode attribute. Monitor vendor channels for updates and apply official patches promptly once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-06-19T16:03:58.190Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a44ca9927e9c797192facec
Added to database: 07/01/2026, 08:06:49 UTC
Last enriched: 07/01/2026, 08:22:07 UTC
Last updated: 07/01/2026, 09:40:49 UTC
Views: 6
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.