Description
The Stock History & Reports Manager for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'alg_wc_stock_snapshot_restocked shortcode in all versions up to, and including, 2.2.2 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.
Published: 2025-10-11
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting
Action: Patch
AI Analysis

Impact

The Stock History & Reports Manager for WooCommerce plugin contains a stored Cross‑Site Scripting weakness in the alg_wc_stock_snapshot_restocked shortcode. An attacker who can authenticate as a contributor or higher can supply malicious attributes that are not properly sanitized or escaped, causing the plugin to persist user‑provided code. When an affected page is rendered, the injected script runs in the victim’s browser, potentially compromising credentials, defacing content, or stealing sensitive data.

Affected Systems

WordPress sites that have the Stock History & Reports Manager for WooCommerce plugin published by WPCodeFactory. Versions up to and including 2.2.2 are impacted. Sites with contributor‑level or higher authentication are required for exploitation.

Risk and Exploitability

The CVSS v3 base score of 6.4 indicates a moderate severity. The EPSS score is below 1 %, showing that real‑world exploitation is currently low but not impossible. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires an authenticated user with contributor privileges to inject a payload via the shortcode attributes, which is then stored and later executed when the page containing the shortcode is viewed.

Generated by OpenCVE AI on April 22, 2026 at 22:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the plugin to a version newer than 2.2.2 to remove the vulnerable shortcode handling.
  • Restrict or remove the alg_wc_stock_snapshot_restocked shortcode from pages that are editable by contributors. Admin‑only pages should be the sole location where this shortcode can appear.
  • Implement a Content Security Policy that limits script execution to trusted sources, reducing the impact of any remaining stored XSS injections.
  • Ensure that users with contributor access are authenticated over secure channels and that role‑based access is periodically reviewed.

Generated by OpenCVE AI on April 22, 2026 at 22:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 08 Apr 2026 17:00:00 +0000

Type Values Removed Values Added
Description The Stock History & Reports Manager for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'alg_wc_stock_snapshot_restocked shortcode in all versions up to, and including, 2.2.1 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. The Stock History & Reports Manager for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'alg_wc_stock_snapshot_restocked shortcode in all versions up to, and including, 2.2.2 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.
Title Stock History & Reports Manager for WooCommerce <= 2.2.1 - Authenticated (Contributor+) Stored Cross-Site Scripting Stock History & Reports Manager for WooCommerce <= 2.2.2 - Authenticated (Contributor+) Stored Cross-Site Scripting
References

Tue, 21 Oct 2025 13:15:00 +0000

Type Values Removed Values Added
First Time appeared Woocommerce
Woocommerce woocommerce
Wordpress
Wordpress wordpress
Wpcodefactory
Wpcodefactory stock History & Reports Manager For Woocommerce
Vendors & Products Woocommerce
Woocommerce woocommerce
Wordpress
Wordpress wordpress
Wpcodefactory
Wpcodefactory stock History & Reports Manager For Woocommerce

Tue, 14 Oct 2025 21:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 11 Oct 2025 09:45:00 +0000

Type Values Removed Values Added
Description The Stock History & Reports Manager for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'alg_wc_stock_snapshot_restocked shortcode in all versions up to, and including, 2.2.1 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.
Title Stock History & Reports Manager for WooCommerce <= 2.2.1 - Authenticated (Contributor+) Stored Cross-Site Scripting
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

Woocommerce Woocommerce
Wordpress Wordpress
Wpcodefactory Stock History & Reports Manager For Woocommerce
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T16:36:43.218Z

Reserved: 2025-09-09T13:32:04.685Z

Link: CVE-2025-10167

cve-icon Vulnrichment

Updated: 2025-10-14T20:14:48.653Z

cve-icon NVD

Status : Deferred

Published: 2025-10-11T10:15:41.797

Modified: 2026-04-15T00:35:42.020

Link: CVE-2025-10167

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-22T22:15:26Z

Weaknesses