---
id: CVE-2026-90896
title: >-
  Missing Authentication for Critical Function (CWE-306) in the checkout session
  lookup handler (src/app/api/stripe/checkout_sessions/route.ts), exposed at GET
  /api/stripe/checkout_sessions, in MarcosCamara01 Ecommerce Template before
  comm…
summary: >-
  Missing Authentication for Critical Function (CWE-306) in the checkout session
  lookup handler (src/app/api/stripe/checkout_sessions/route.ts), exposed at GET
  /api/stripe/checkout_sessions, in MarcosCamara01 Ecommerce Template before
  comm…
severity: high
cvss: 8.2
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'
cwe:
  - CWE-306
vendor: MarcosCamara01
product: Ecommerce Template
affected:
  - ecommerce_template < 91e273c
published: '2026-09-14'
updated: '2026-09-18'
sourceUpdated: '2026-09-18T19:25:29.923'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-90896'
references:
  - url: >-
      https://github.com/MarcosCamara01/ecommerce-template/commit/91e273c69d976a3d205179e66e01fc399bfdd08b
    label: 4daa8cea-433a-44bd-9456-53b127fc289a
  - url: >-
      https://secur0.com/en/cna/cve-list/cve-2026-90896-missing-authentication-ecommerce-template-checkout-session-pii
    label: 4daa8cea-433a-44bd-9456-53b127fc289a
tags:
  - nvd
  - cve.org
epss: 0.00446
epssPercentile: 0.38154
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-15T19:16:46.645636Z'
cvssSource: cna
ingestedAt: '2026-09-14T21:15:17.459Z'
---

## Overview

Missing Authentication for Critical Function (CWE-306) in the checkout session lookup handler (src/app/api/stripe/checkout_sessions/route.ts), exposed at GET /api/stripe/checkout_sessions, in MarcosCamara01 Ecommerce Template before commit 91e273c allows a remote, unauthenticated attacker holding a valid Stripe Checkout Session id (cs_...) to retrieve the full session object, including the buyer's name, email, phone, billing address, amount paid and internal userId, because the GET handler calls stripe.checkout.sessions.retrieve() and returns the result without checking for an authenticated session or session ownership. Sibling endpoints such as POST /api/stripe/payment already enforced authentication via auth.api.getSession(); this endpoint had no access control whatsoever. The session_id is exposed in the buyer's own browser URL after payment (success_url = /result?session_id={CHECKOUT_SESSION_ID}), so it leaks through Referer headers, analytics tools, server access logs and shared-machine browser history, resulting in disclosure of the buyer's personal data to an unauthenticated actor.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
