Read the docs

Cross-user cart and wishlist modification in Ecommerce Template

Priority LOW 31CWE-639Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Security bypass
Confidentiality · integrity · availability
Low · High · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-639.

Summary

MarcosCamara01 Ecommerce Template lets any authenticated user delete and modify cart and wishlist rows of other accounts. The repositories match rows by primary key alone (CWE-639), and row level security does not apply because the application connects as the table owner. Sequential identifiers let an attacker enumerate other users' rows.

Written with Claude Haiku 5.5 from the sources below · 2026-11-06

Description from the CNA

Authorization Bypass Through User-Controlled Key (CWE-639) in the cart and wishlist repositories of MarcosCamara01 Ecommerce Template allows any authenticated user to delete and modify the cart and wishlist rows of any other user, because cartRepository.delete(), cartRepository.updateQuantityInternal() and wishlistRepository.delete() in src/lib/db/drizzle/repositories/ match rows by primary key alone, with no predicate on the owning user, and the per user authorization for those three operations rests on PostgreSQL row level security. The migrations run ALTER TABLE ... ENABLE ROW LEVEL SECURITY and create policies comparing app.current_user_id() with user_id, but never ALTER TABLE ... FORCE ROW LEVEL SECURITY, and PostgreSQL does not apply policies to the role that owns a table. The template uses one DATABASE_URL both to run the migrations, which create the tables, and for the application at runtime, so the application connects as the owner of the tables and the policies do not apply to it. cart_items.id and wishlist.id are sequential bigserial values, so the identifiers of rows belonging to other users can be enumerated, and the update path returns the modified row, which carries the identifier of the user it belongs to. This results in the destruction and modification of cart and wishlist contents belonging to other accounts of the installation.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00249 16th percentileScored 2026-11-07
Fix Fixed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

No affected products listed by the sources yet.

CPE names CNA · 1

CPEVersionsRoleVendor
cpe:2.3:a:marcoscamara01:ecommerce-template:*:*:*:*:*:*:*:*——MarcosCamara01
  • cpe:2.3:a:marcoscamara01:ecommerce-template:*:*:*:*:*:*:*:* Versions — — ·MarcosCamara01

Remediation

The sources list no fixed version for MarcosCamara01 Ecommerce Template.

Written with Claude Haiku 5.5 from the sources below · 2026-11-06

Timeline

  1. 2026-10-22 Threatist record created from CVE-2026-115453
  2. 2026-10-22 Alias added: GHSA-j5qr-vh53-fq3q
  3. 2026-10-23 Priority changed: MEDIUM → LOW
  4. 2026-10-30 CISA SSVC decision points changed

References

  • TI-2026-61910 Missing authentication in Ecommerce Template product cache revalidation allows unauthenticated denial of service CVSS 4.0MEDIUM 6.9
  • TI-2026-61768 Missing authentication in Ecommerce Template checkout session endpoint allows unauthenticated disclosure of buyer PII CVSS 4.0HIGH 8.2
  • TI-2026-79299 Price manipulation in MarcosCamara01 Ecommerce Template checkout flow CVSS 4.0HIGH 7.1

Sources