Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-22819 Overview
CVE-2025-22819 is a stored cross-site scripting (XSS) vulnerability in the Roberto Bottalico qr-code-and-barcode-scanner-reader WordPress plugin. The flaw affects all versions up to and including 1.0.0. The plugin fails to properly neutralize user-supplied input during web page generation, allowing an authenticated attacker with low privileges to inject persistent JavaScript payloads. Stored payloads execute in the browser of any user who views the affected page, including administrators. The issue is tracked under CWE-79 and documented in the Patchstack XSS Vulnerability Advisory.
Critical Impact
Authenticated attackers can inject persistent JavaScript that executes in administrator browsers, enabling session theft, privilege escalation, and arbitrary actions within the WordPress admin interface.
Affected Products
- Roberto Bottalico QR Code and Barcode Scanner Reader (WordPress plugin)
- Plugin slug: qr-code-and-barcode-scanner-reader
- All versions from n/a through <= 1.0.0
Discovery Timeline
- 2025-01-09 - CVE-2025-22819 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-22819
Vulnerability Analysis
The plugin accepts input from authenticated users and renders it back into HTML pages without applying context-appropriate output encoding. Attackers submit a payload containing JavaScript, which the plugin stores in the WordPress database. When a victim later loads a page containing the stored content, the browser parses the attacker-controlled markup and executes the injected script.
The scope-changed nature of the vulnerability means the injected script runs in the security context of the viewing user, which typically includes site administrators. User interaction is required because a victim must load the affected page.
Root Cause
The root cause is improper neutralization of input during web page generation, mapped to CWE-79. The plugin does not call WordPress sanitization helpers such as sanitize_text_field() on input, nor does it apply esc_html(), esc_attr(), or wp_kses() on output. Scanner input fields and configuration values are treated as trusted HTML rather than untrusted data.
Attack Vector
Exploitation proceeds over the network against a WordPress site running the vulnerable plugin. An attacker with a low-privilege authenticated account submits a crafted value through a plugin input field. The payload persists in the database. When an administrator or other user visits the rendered page, the stored script executes and can perform actions such as creating new administrator accounts, exfiltrating session cookies, or modifying site content.
No verified public exploit code is available for this issue. Refer to the Patchstack advisory for additional context.
Detection Methods for CVE-2025-22819
Indicators of Compromise
- Unexpected <script>, onerror=, or onload= strings stored in plugin-related wp_options or wp_postmeta rows.
- Outbound HTTP requests from administrator browsers to unfamiliar domains shortly after loading plugin pages.
- Newly created WordPress administrator accounts or modified user roles without a corresponding audit entry.
- Unexpected modifications to plugin settings or scanner configuration values.
Detection Strategies
- Query the WordPress database for plugin-related rows containing HTML event handlers or <script substrings.
- Review web server access logs for POST requests to plugin endpoints containing URL-encoded script payloads.
- Monitor Content Security Policy (CSP) violation reports if CSP is enforced on wp-admin pages.
Monitoring Recommendations
- Alert on administrator account creation and role changes in near real time.
- Track plugin version inventory across WordPress sites and flag installations at version 1.0.0 or earlier.
- Capture and retain wp-admin HTTP traffic for retrospective analysis of injection attempts.
How to Mitigate CVE-2025-22819
Immediate Actions Required
- Deactivate and remove the qr-code-and-barcode-scanner-reader plugin until a patched version is confirmed available.
- Audit all WordPress user accounts for unauthorized administrators or elevated privileges.
- Rotate administrator passwords and invalidate active sessions by refreshing WordPress authentication keys in wp-config.php.
- Inspect plugin-related database entries for stored script payloads and sanitize or remove affected rows.
Patch Information
No fixed version is listed in the available data. Versions through <= 1.0.0 are affected. Consult the Patchstack advisory and the WordPress plugin repository for update status before reinstalling.
Workarounds
- Restrict access to WordPress authoring roles so only trusted accounts can submit plugin input.
- Deploy a web application firewall (WAF) rule that blocks requests containing <script> or HTML event handlers targeting plugin endpoints.
- Enforce a strict Content Security Policy on wp-admin to prevent inline script execution.
- Replace the plugin with an actively maintained alternative that applies WordPress sanitization APIs.
# Example WordPress CLI workflow to disable the vulnerable plugin
wp plugin deactivate qr-code-and-barcode-scanner-reader
wp plugin delete qr-code-and-barcode-scanner-reader
wp user list --role=administrator --fields=ID,user_login,user_email,user_registered
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

