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-2026-112249 Overview
CVE-2026-112249 is a stored cross-site scripting (XSS) vulnerability in GrandNode2, an open-source e-commerce platform built on ASP.NET Core. The flaw affects versions up to and including 2.3.0. It resides in the Html.Raw call inside src/Web/Grand.Web/Views/Product/Product.Layout.Simple.cshtml, where product description content is rendered without sanitization. An authenticated attacker with privileges to edit product descriptions can inject script payloads that execute in the browser of any user viewing the affected product page. The weakness is classified as CWE-79: Improper Neutralization of Input During Web Page Generation. GrandNode addressed the issue in version 2.4.0 and the 2.4.0-beta release.
Critical Impact
Attackers with vendor or store-manager privileges can store malicious JavaScript in product descriptions, enabling session theft, credential harvesting, and administrative action hijacking against shoppers and admins.
Affected Products
- GrandNode grandnode2 versions up to and including 2.3.0
- Component: Product Description Handler (src/Web/Grand.Web/Views/Product/Product.Layout.Simple.cshtml)
- Fixed in 2.4.0-beta and 2.4.0
Discovery Timeline
- 2026-10-19 - CVE-2026-112249 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-112249
Vulnerability Analysis
The Product.Layout.Simple.cshtml Razor view renders product description content through Html.Raw, which bypasses the default HTML encoding applied by Razor. GrandNode previously relied on a NoScripts blacklist to strip dangerous markup from rich-text fields. Blacklist approaches are brittle because they attempt to enumerate forbidden patterns rather than permit a known-safe set, and attackers routinely bypass them with obfuscated event handlers, SVG payloads, or malformed tags that still execute in browsers. Because the description is persisted in the catalog database and re-rendered to every shopper, a single injected payload runs for every visitor to the product page.
Root Cause
The root cause is the combination of unencoded output through Html.Raw and a denylist-based sanitizer that failed to catch all script-executing constructs. The fix, delivered in commit 41a8e349eab8d9641cf6ea800d738f2d8991ca22, replaces the blacklist with the HtmlSanitizer library configured as an allowlist. New SecurityConfig options (SanitizerAllowedIframeHosts and EnableHtmlSanitization) govern what rich-text markup survives the sanitation pass.
Attack Vector
Exploitation requires high privileges, specifically an account allowed to author or edit product descriptions (vendor or store manager). The attacker submits a product description containing a scripted payload. When a victim loads the product page, the payload executes in the victim's browser under the store's origin. User interaction (viewing the page) is required. Impact includes stealing authenticated session cookies, performing actions on behalf of administrative users, and defacing storefront content.
// Patch excerpt: Directory.Packages.props
<ItemGroup>
<PackageVersion Include="Azure.Monitor.OpenTelemetry.AspNetCore" Version="1.6.0" />
<PackageVersion Include="ExcelMapper" Version="6.0.641" />
+ <PackageVersion Include="HtmlSanitizer" Version="9.2.995" />
<PackageVersion Include="MessagePack" Version="3.1.8" />
<PackageVersion Include="Microsoft.AspNetCore.Http" Version="2.3.11" />
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="10.0.10" />
Source: GrandNode Commit 41a8e349
// Patch excerpt: src/Core/Grand.Infrastructure/Configuration/SecurityConfig.cs
+ /// <summary>
+ /// Hosts whose iframes survive HTML sanitization of rich-text content (product descriptions, blog posts, pages).
+ /// An iframe pointing anywhere else is removed, because its src is otherwise attacker-controlled.
+ /// Matching is case-insensitive on the host only; a leading "*." matches any subdomain.
+ /// Leave empty to fall back to the built-in video-embed defaults; set to a single empty entry to block every iframe.
+ /// </summary>
+ public string[] SanitizerAllowedIframeHosts { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether [SanitizeHtml] and [NoHtml] reject markup on save. Default true.
+ /// This is an operational escape hatch, not a security setting: turn it off only temporarily, if the
+ /// allowlist is found to reject legitimate content in production, while a fix is prepared - every field
+ /// these attributes guard (Vendor/Store-manager-editable rich text rendered unencoded via Html.Raw/v-html)
+ /// goes back to accepting raw, unsanitized HTML the moment this is false. Re-enable as soon as possible.
+ /// </summary>
+ public bool EnableHtmlSanitization { get; set; } = true;
Source: GrandNode Commit 41a8e349
Detection Methods for CVE-2026-112249
Indicators of Compromise
- Product description records containing <script>, javascript:, on*= event handlers, or SVG-based payloads in the catalog database
- Unexpected outbound HTTP requests from storefront visitors to attacker-controlled domains sourced from product pages
- Admin or vendor accounts editing product descriptions outside normal business hours
- Browser console errors or Content Security Policy (CSP) violation reports originating from /product/* URLs
Detection Strategies
- Query the GrandNode product catalog for description fields containing HTML tags or JavaScript protocol handlers prior to applying the patch
- Enable CSP reporting on the storefront to capture inline-script violations tied to product views
- Review audit logs for product edits made by vendor accounts, correlating with subsequent anomalous storefront traffic
- Monitor web application firewall (WAF) logs for payload patterns reaching the product edit endpoints
Monitoring Recommendations
- Alert on new or modified product descriptions where the sanitizer rejects content, which may indicate attempted injection
- Track session anomalies for administrative users shortly after viewing product pages
- Instrument endpoint telemetry to flag browser processes making unusual network connections after visiting the storefront
How to Mitigate CVE-2026-112249
Immediate Actions Required
- Upgrade GrandNode2 to version 2.4.0 or the 2.4.0-beta release, which includes commit 41a8e349eab8d9641cf6ea800d738f2d8991ca22
- Audit all existing product descriptions, blog posts, and CMS pages for stored HTML or scripts, and remove untrusted markup
- Rotate administrative session cookies and credentials for accounts that may have interacted with tampered product pages
- Review vendor and store-manager accounts for unauthorized access and tighten role assignments
Patch Information
The fix is delivered in GrandNode Pull Request #780 and merged as commit 41a8e349eab8d9641cf6ea800d738f2d8991ca22. It replaces the previous NoScripts blacklist with the HtmlSanitizer library (version 9.2.995) configured as an allowlist. Additional details are available in the GitHub Security Advisory GHSA-cvpg-48r9-fq67 and the 2.4.0-beta release notes.
Workarounds
- Restrict vendor and store-manager roles to trusted personnel until the upgrade is applied
- Deploy a WAF rule that blocks HTML tags and JavaScript URIs in product description submissions
- Enforce a strict Content Security Policy that disallows inline scripts on storefront pages to reduce blast radius
- Keep EnableHtmlSanitization set to true after patching; disable only temporarily and only when necessary
# Verify installed GrandNode version and upgrade
git clone https://github.com/grandnode/grandnode2.git
cd grandnode2
git checkout 2.4.0
dotnet build
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

