Skip to content
Heist/ feed
Medium

Missing authentication in Ecommerce Template product cache revalidation allows unauthenticated denial of service

Type: advisorySource: Official CVE List1 source record

Missing Authentication for Critical Function (CWE-306) in the product cache revalidation Server Action (src/app/actions.ts, revalidateProducts) in MarcosCamara01 Ecommerce Template before commit ec97209 allows a remote, unauthenticated attacker to force expiration of the entire storefront product cache at will. The file declares "use server" at file scope, so every exported function compiles into a POST-invokable Server Action; revalidateProducts calls updateTag("products") with no session or role check, unlike the read-only actions in the same file which are safe by construction. Two client components under src/components/admin import the function, which causes its Server Action id to be compiled into a public /_next/static chunk that the application's admin middleware (proxy.ts) does not gate, so any unauthenticated user can extract that id from the public bundle and invoke the action directly. With cacheComponents enabled, the entire storefront (home, categories, product pages, search) is served from "use cache" entries produced by getAllProducts, getCategoryProducts and getProduct, all tagged products with an hours-long cacheLife. Repeated unauthenticated invocation of revalidateProducts keeps that cache permanently cold, forcing every visitor's request to read the full product catalog from Postgres instead of serving from cache, degrading storefront availability at near-zero attacker cost.

Announced Group revision 1
Original source ↗

CVE-2026-91154

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-91154

Ecommerce Template

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://github.com/MarcosCamara01/ecommerce-template",
    "vendor": "MarcosCamara01",
    "modules": [
      "Product cache revalidation Server Action"
    ],
    "product": "Ecommerce Template",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "ec97209",
        "versionType": "custom"
      }
    ],
    "programFiles": [
      "src/app/actions.ts"
    ],
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-91154

Source reference: /cveMetadata/cveId

Publisher severity

medium

Source reference: /containers/cna/metrics

Event
#3277 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement