Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@cartbase/storefront

Latest version: v0.45.5

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: famsocial
59 Versions
1.9K Downloads

Scan summary

@cartbase/storefront was last scanned on 28 Nov 2026 at version 0.45.5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 59 versions; the latest 4 were published within 6 days (23–28 Nov 2026).
  • Findings: No rules fired in version 0.45.5.
  • Downloads: 1,911 downloads.

Versions

59 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.45.5 LATEST 28 Nov 2026 No rules fired
0.45.4 27 Nov 2026 No rules fired
0.45.3 25 Nov 2026 No rules fired
0.45.2 23 Nov 2026 Not shown
0.46.0-builder.3 21 Nov 2026 Not shown

No rules fired in 0.45.5

Findings

Findings for v0.45.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.45.5; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@cartbase/storefront

The storefront package for the Cartbase commerce platform: a fully-typed API client for every store endpoint, checkout orchestration, a production-grade cart drawer, product and catalog components, and consent-gated tracking, everything a storefront needs between your pages and your store.

npm create cartbase my-store    # scaffold with everything prewired
# or add to an existing Next.js app:
npm install @cartbase/storefront

For agents: start here

One of four doors, and the docs behind each at https://docs.cartbase.ai (a scaffold carries them in docs/):

You are Start with
Building a new storefront from nothing npx create-cartbase@latest my-store --key pk_…, then the runbook, Build a storefront
Bringing an app you already have onto the store Bring your own storefront: the package into your app, the checklist, the danger zones
Running the store from the terminal (products, orders, settings) npx cartbase@latest init, then the brief it writes, CARTBASE.md; cartbase resources lists every command
Building an app for the store Build an app, and cartbase app create <key>

Read The rules below before the first edit, whichever door.

The rules

Enforced by the platform or costing the store its support; an agent that reads nothing else reads these.

  1. This package is the way in. Every read and write goes through its api functions or its hooks. The platform's checkout completion refuses a client that skipped the platform's filtered listings and a total it did not compute, so a checkout written against raw endpoints fails at the moment of money.
  2. Totals and prices are the server's. Render what the platform answers, verbatim; never add, multiply or round money in the app.
  3. node_modules is never edited. Pin one version; a change comes from a newer version, a prop, a slot or a theme token.
  4. The hooks are imported, never copied and never rebuilt. The money path (checkout/use-checkout-buy, checkout/payment-wrapper, checkout/stripe-wrapper, checkout/payment-button) is locked: never ejected, never wrapped by code that changes what it sends.
  5. Your design, these components. Override theme token values, never token names. Ejecting a component is the last resort and one command, cartbase eject <module>, never a copy by hand: the file lands in src/cartbase/ with a header the deploy reads and its imports pointed back at the package, and it leaves Cartbase support. The money path (src/lib/locks.json) is refused.
  6. Cartbase hosting is where the store runs. The platform adds its own files to every deploy (the analytics collector and its forwarder), and refuses middleware.*, app/api/*, a hosting provider's configuration file and .env*.

Setup

Three files, whatever tool built the app.

next.config: add these keys to the config the app already has; never replace the file (the Tailwind loader, cacheComponents and your own redirects stay). The package is source-shipped TypeScript, the store API answers no cross-origin browser call, product pictures live on the Cartbase media CDN, and the catalogue reads need a cache life:

transpilePackages: ["@cartbase/storefront"],
cacheLife: { catalog: { stale: 300, revalidate: 86400, expire: 604800 } },
images: { remotePatterns: [{ protocol: "https", hostname: "cartbase.cloud" }] },
async rewrites() {
  const cartbaseUrl = process.env.NEXT_PUBLIC_CARTBASE_URL || "https://admin.cartbase.ai"
  return [{ source: "/api/store/:path*", destination: `${cartbaseUrl}/api/store/:path*` }]
},

The catalogue life is a day because a change never waits for it: Cartbase marks the store's pages stale within a minute of every save in the admin and at every Publish, and the page is rebuilt behind its next visit. The life only bounds how old a page nobody changed can get. Every cached read carries the tag catalog and names what it returned by id (product:<id>, collection:<id>, page:<id>, a page of products products), so Cartbase purges only the pages that show the thing a save changed; the names are listed in BRING-YOUR-OWN-STOREFRONT.md, step 2.

globals.css: Tailwind 4 is CSS-first, so the theme is two imports; the package's source must be scanned or the components render unstyled (the @source path is relative to the CSS file); your brand is token values below the imports:

@import "tailwindcss";
@import "@cartbase/storefront/theme";
@source "../../node_modules/@cartbase/storefront/src";
@custom-variant dark (&:where(.dark, .dark *));

:root { --primary: oklch(0.45 0.16 150); --radius-base: 0.75rem; }

.env.local: one value wires the app to the store, the publishable key your Cartbase admin hands out on the Storefront page. On Cartbase hosting it is injected at build.

NEXT_PUBLIC_CARTBASE_PUBLISHABLE_KEY=  # your store's key: names the store, scopes the catalog
NEXT_PUBLIC_CARTBASE_URL=              # optional: only to point at a local or staging platform

Then the five files of src/lib/ from the reference storefront (the scaffold's config.ts, store-client.ts, browser-client.ts, server-client.ts, catalog.ts), the shell in your root layout, the checkout page and the order page. The whole route for an app you already have, step by step with its checklist and its danger zones, is Bring your own storefront; a blank app starts at the runbook. Run npx cartbase@latest init in the app: it writes the brief your coding agent reads in every session.

What's inside

Import What you get
@cartbase/storefront/api Typed client for the whole store API, products, carts, checkout, orders, customers, auth, content, search, reviews, and a custom app's public records (api/apps)
@cartbase/storefront/checkout The complete checkout: the orchestration hook, address forms, shipping/payment method lists, Stripe wrapper, carrier pickers
@cartbase/storefront/checkout/use-checkout-* The checkout's nine concerns, each its own import: use-checkout-cart, use-cart-notes, use-checkout-address, use-checkout-delivery, use-checkout-tender, use-checkout-totals, use-checkout-buy (the money path, locked), use-checkout-error-log, use-checkout-feed. useCheckoutOrchestration is their composition; compose your own checkout from the pieces you keep
@cartbase/storefront/cart-drawer Slide-out cart with upsells, tiers, gift options, notes
@cartbase/storefront/products PDP building blocks: gallery, options, prices, actions
@cartbase/storefront/store Listing pages: pagination, sorting, collection/category/search templates, and the search box that shows products and pages while the shopper types (usePredictiveSearch, PredictiveSearch, PredictiveSearchResults)
@cartbase/storefront/order Order confirmation surfaces
@cartbase/storefront/account The customer's side: who is signed in, the sign-in with an emailed code, the account page with the orders and the profile, and Sign out
@cartbase/storefront/tracking Consent banner and Consent Mode v2, every marketing tag the store configured mounted from its own config (Meta Pixel, TikTok, Google Analytics 4 and Google Ads on one tag, Google Tag Manager), and one call per commerce moment that fires all of them
@cartbase/storefront/locales English built in; Spanish and Bulgarian as typed packs. One provider mounts the language for every client component; the server-rendered templates take their area of the pack as a required prop
@cartbase/storefront/experiments The store's A/B tests: ExperimentsProvider once in the layout, useExperiment(key) in any component, getExperimentVariant on the server; the visitor's variant computed with the platform's own assignment, and what each visitor was shown reported once
@cartbase/storefront/theme The design system: token names plus a filled default set of values (Tailwind 4, CSS-first)
The checkout page is static

Mount CheckoutClient with the transport alone and the page needs no server read: the form is in the prerendered HTML and paints with your header, and the client reads the shopper's cart, the delivery methods and the tenders from the browser in one round after the paint, through your same-origin /api/store rewrite. Until the cart lands the summary marks where its numbers go; a read the network or the platform fails is asked once more before anything is shown, and a listing that still fails says so in its own section with a Try again; no cart, an empty cart or one completed elsewhere shows the empty notice with the way back. A store that reads any of the three on its server hands it in as the value, or as a promise wrapped with settleFeed() so it settles into a result and never rejects (checkout/checkout-feed). The cart is re-read once when the tab comes back into view; nothing here ever refreshes the page.

The checkout is nine hooks

useCheckoutOrchestration is the composition of one hook per concern: the cart and its listings, the checkout's notes on the cart, the address, the delivery and its live quotes, the tender and its fee, the totals, Place order, where failures go, and the feed follower. CheckoutClient mounts the composition; a store with its own layout mounts it too, or imports the concerns it keeps and replaces the ones it does not. useCheckoutBuy is the one locked piece: prepare, confirm, complete and the bank-challenge return, imported and used, never rewritten. Every hook explains itself at the top of its file, and every one has its own test suite.

Pickup points

The checkout pickup picker loads each carrier's complete eligible catalogue through the store API and always offers three points: the nearest to the address found on the map, else the typed town's, else the postcode's, else any three. Its search reaches every point of the network, in Latin or Cyrillic, whatever town was typed; the mounted locale pack selects Speedy's display language. Offices exclude automated lockers. A picker with nothing to pick reports itself to the platform's checkout log. No carrier credentials or copied catalogue are needed in the storefront. Every shipping option carries the connected adapter's identity, mark, destination mode and pickup scope, so the same picker and logo path work for every carrier without storefront branches.

Tracking, in three lines

The merchant configures their pixels in the admin; the storefront mounts what they configured. Nothing per vendor:

<ConsentInit required={consent.enabled} />  // first child of <body>, sets the consent defaults
<StorefrontTags client={client} />          // every configured tag, gated by the above
<TrackInit />                               // captures UTMs + ad-click ids on the landing page

consent.enabled is the store's own switch (GET /api/store/consent): a store that collects consent starts every visitor denied until they choose on the banner; a store with the banner off starts them granted and the pixels fire. The prop is required, so a layout cannot leave it out.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @cartbase/storefront

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229