CVE-2021-42193: nopCommerce stored XSS in Product Name field

CVE-2021-42193 · Severity: medium · CVSS 6.1 · Published 2025-10-03

nopCommerce, a popular open-source e-commerce platform, is vulnerable to a security flaw that allows attackers to inject malicious scripts into product names. When a customer views the affected product in the online store, the script automatically runs in their browser. This could allow an attacker to steal session cookies, redirect users to malicious websites, or perform unauthorized actions on behalf of the customer.

Technologies: Nopcommerce. Vendors: Nopcommerce.

Quick answers

Is CVE-2021-42193 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2021-42193 being exploited in the wild.
How severe is CVE-2021-42193?
Medium severity, with a CVSS score of 6.1, published 3 October 2025.
Which products and versions are affected?
Nopcommerce 4.40.3.
Is there a fix for CVE-2021-42193?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2021-42193 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2021-42193?
Check whether you run Nopcommerce at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A stored cross-site scripting (XSS) vulnerability exists in nopCommerce 4.40.3 within the 'Product Name' field at the /Admin/Product/Edit/[id] endpoint. The application fails to properly sanitize this input before rendering it on the public-facing shop pages. An attacker with administrative privileges can inject an obfuscated SVG-based payload (e.g., using onload handlers and Unicode escapes) to bypass basic filters. When any user (including unauthenticated customers) views the compromised product page, the payload executes arbitrary JavaScript in the context of their browser session. This can lead to session hijacking or unauthorized data exfiltration.

Affected products

  • nopCommerce nopCommerce 4.40.3

Timeline

  • 2021-10-13: disclosed: CVE reserved date
  • 2025-10-01: disclosed: Public exploit published by Scott Sturrock
  • 2025-10-03: advisory: NVD published date

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.