JPACookieShop
CVE-2025-8221
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts malicious search URL
-
DeliveryVictim clicks phishing link
-
ExploitKeyword parameter reflected in response
-
ExecutionMalicious JavaScript executes in victim browser
-
ImpactSensitive data leaked or session compromised
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 the following specific conditions: the GoodsCustController.goodsSearch endpoint must be accessible without authentication (confirmed by CVSS PR:N); the keyword parameter value must be reflected directly in the HTML response without encoding or validation; and a victim user must visit a crafted URL containing the malicious payload (required by CVSS UI:P). The vulnerability is NOT exploitable through stored XSS or automated bot attacks due to the reflected nature requiring user action. Non-default configurations (e.g., Web Application Firewall blocking special characters, CSP policies, or reverse proxies sanitizing input) would mitigate exploitation, but default JPACookieShop installations are vulnerable. |
| Impact | The risk assessment reveals a significant disconnect between technical severity and real-world exploitation probability. While CVSS 4.0 indicates network-accessible attack vector with low complexity and no privilege requirements, the actual risk is substantially mitigated by multiple factors: CVSS UI:P (user interaction required) means victims must click a crafted link; EPSS 0.06% (20th percentile) shows exploitation is statistically uncommon; no KEV listing suggests no confirmed active exploitation despite public POC availability; and the XSS scope is limited to information disclosure (VI:L) without session hijacking or account takeover capability. The distinction between POC existence and active exploitation is critical here-publicly available code does not indicate widespread deployment. Defense prioritization should focus on web application firewalls and input validation rather than treating this as an urgent threat. |
| Exploit ScenarioDerived | An attacker crafts a malicious URL containing JavaScript in the keyword search parameter, such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Reflected cross-site scripting (XSS) in JPACookieShop's GoodsCustController.goodsSearch function allows remote unauthenticated attackers to inject malicious scripts via the keyword parameter, affecting user sessions with minimal complexity. The vulnerability carries a CVSS 2.1 score but requires user interaction (clicking a malicious link), and public exploit code is available. With an EPSS of 0.06% and no confirmed active exploitation in the wild, the real-world risk is low despite the disclosed POC.
RemediationAI
Implement immediate input validation and output encoding in the goodsSearch function: sanitize the keyword parameter using established XSS prevention libraries (e.g., OWASP Java Encoder or Spring Security's HtmlUtils) before rendering to HTML, or use parameterized templates that automatically escape output. For organizations unable to patch immediately due to the rolling release model, apply compensating controls including Content Security Policy (CSP) headers with script-src restrictions to prevent inline script execution, and enable httpOnly and Secure flags on session cookies to limit XSS impact. Additionally, implement input validation regex to reject or filter special characters from the keyword parameter, though sanitization of output remains the primary defense. Monitor the project repository at https://github.com/jerryshensjf/JPACookieShop for security commits and apply updates from rolling releases promptly.
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
The vulnerability exists in the GoodsCustController.java file, specifically in the goodsSearch function that processes user-supplied input. The keyword parameter is processed without proper input validation or output encoding, allowing attackers to inject arbitrary HTML and JavaScript code that executes in the victim's browser context. This is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), a fundamental web application security flaw where untrusted user input is reflected directly into the HTTP response without sanitization. The affected CPE cpe:2.3:a:jerryshensjf:jpacookieshop indicates the JPA-based e-commerce platform uses a rolling release model without versioning, making traditional patch tracking difficult.
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:N/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 classified as problematic was found in jerryshensjf JPACookieShop 蛋糕商城JPA版 up to 24a15c02b4f75042c9f7f615a3fed2ec1cefb999. Affected by this vulnerability is the function goodsSearch of the file GoodsCustController.java. The manipulation of the argument keyword leads to cross site scripting. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. This product takes the approach of rolling releases to provide continious delivery. Therefore, version details for affected and updated releases are not available.
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
Authorization bypass in JPACookieShop (蛋糕商城JPA版) version 1.0 allows authenticated remote attackers to modify goods via t
Stored cross-site scripting (XSS) in JPACookieShop GoodsController allows authenticated users to inject malicious script
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB