Cluster 11 · PCI DSS 6.4.3 · Shopify · Checkout Extensibility

Shopify Checkout PCI DSS v4.0.1 Req. 6.4.3 & 11.6.1: Web Pixels, Scripts & CSP

Prepare Shopify Plus and standard storefronts for PCI DSS v4.0.1 Req. 6.4.3 & 11.6.1: migrate off deprecated checkout.liquid, isolate analytics via sandboxed Web Pixels, and audit storefront/theme CDN scripts with SRI.

Zero Telemetry · Strict CSP (connect-src 'none') · WebCrypto

Checkout HTML & CSP Header Linter

PCI DSS v4.0.1 Req. 6.4.3 & 11.6.1
Compliance Note: Automated engineering & preparation guidance for PCI DSS v4.0.1 Req. 6.4.3 & 11.6.1 — verify final SAQ/ROC scope with your QSA or acquiring bank.
PCI DSS 6.4.3 & 11.6.1 Readiness Score
85 / 100 (B)
AUDIT RISK — FIX SCRIPT & CSP GAPS
External Scripts
2
Missing SRI/Pin
1
Evergreen PSPs
1
CSP Header
STRICT
Extracted Payment Page Script Inventory
Script / Block Category Status Required Control (SRI vs CSP/Nonce)
https://cdn.shopify.com/shopifycloud/checkout-web/assets/runtime.js Evergreen PSP (Shopify Checkout / Storefront Asset) PASS
Evergreen PSP properly omits static SRI; enforce via strict CSP + Req. 11.6.1 header monitoring.
https://cdn.jsdelivr.net/npm/[email protected]/swiper-bundle.min.js Static External Script ERROR
Needs missing SRI integrity="sha384-...", missing crossorigin="anonymous".
PCI-643-PSP-OK: 1 evergreen PSP loader(s) classified for CSP/nonce PASS
Detected Shopify Checkout / Storefront Asset — correctly distinguished from static CDN SRI.
PCI-643-SRI: 1 static external script(s) missing SRI or crossorigin="anonymous" ERROR
Static third-party scripts on payment pages MUST pin an exact version and carry integrity="sha384-..." + crossorigin="anonymous" under PCI DSS v4.0.1 Req. 6.4.3.
PCI-1161-REPORT-OK: CSP violation reporting directive present PASS
Supports continuous script-injection anomaly telemetry.
PCI-CSP-ALLOW-OK: All extracted HTML <script> origins match strict CSP script-src PASS
Zero unauthorized or unallowlisted script hosts.
Generated Strict Checkout CSP Template
default-src 'self'; script-src 'self' 'nonce-REPLACE_PER_REQUEST' https://cdn.shopify.com https://cdn.jsdelivr.net; style-src 'self'; img-src 'self' data: https:; connect-src 'self' https://monorail-edge.shopifysvc.com; frame-src 'self' https://checkout.shopify.com; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'; report-uri https://brand.myshopify.com/__csp-report
PCI DSS v4.0.1 Req. 6.4.3 Script Justification Matrix (CSV)
"Merchant Origin","Script Location / Tag","Category","Authorization Status","Required Control (SRI vs CSP/Nonce)","Current Integrity / Nonce","Business Justification (PCI DSS v4.0.1 Req 6.4.3)","Req 11.6.1 Monitoring Cadence"
"brand.myshopify.com","https://cdn.shopify.com/shopifycloud/checkout-web/assets/runtime.js","Evergreen PSP (Shopify Checkout / Storefront Asset)","Authorized","Strict CSP script-src host + 'nonce-...' + Req. 6.4.3 justification (Do NOT add static SRI)","nonce=sh0p1fyN0nce","Shopify-hosted checkout runtime script. Restrict custom pixels/apps to sandboxed Shopify Web Pixels and enforce Checkout Extensibility CSP.","Automated weekly or continuous HTTP header + script hash check via CheckoutShield PCI (https://pci.runglab.dev)"
"brand.myshopify.com","https://cdn.jsdelivr.net/npm/[email protected]/swiper-bundle.min.js","Static External Script","Action Required","SRI (sha384) + crossorigin=""anonymous""","MISSING","Pinned external script verified via Subresource Integrity (Req. 6.4.3).","Automated weekly or continuous HTTP header + script hash check via CheckoutShield PCI (https://pci.runglab.dev)"
CheckoutShield PCI · Live Audit $49 PCI Compliance Pack

Monitor Live Checkout Scripts & Ship QSA-Ready Req. 6.4.3 + 11.6.1 Evidence

Need automated HTTP header + script tampering alerts (PCI DSS v4.0.1 Req. 11.6.1) or a tailored CSP, nonce middleware & script justification bundle? Run a free live scan on CheckoutShield PCI (https://pci.runglab.dev), order the $49 CheckoutShield PCI Pack via Creem, or request a PayPal invoice via [email protected].

Platform PCI DSS v4.0.1 Specifications & Controls

Control / Origin Hardened Pattern Req. 6.4.3 & 11.6.1 Rationale
Hosted Checkout Origin checkout.shopify.com / Checkout Extensibility Shopify manages PCI Level 1 hosted checkout CSP & Web Pixels sandbox
Theme / Pre-Checkout Assets integrity="sha384-..." on 3rd-party CDNs Pin external JS libraries loaded in theme.liquid before redirect to checkout
Tracking & Pixels Shopify Web Pixels (Strict Sandbox) Replaces legacy script tags that injected unverified JS directly into checkout DOM
Headless Hydrogen Storefronts Full CSP + Req. 6.4.3 / 11.6.1 Ownership Custom Oxygen/Vercel storefronts must implement strict CSP, SRI, and header monitoring

Shopify Liquid — Adding SRI Hashes to Third-Party Theme Libraries

shopify-theme-sri.liquid
{%- comment -%} Pin exact CDN versions and attach SHA-384 SRI in layout/theme.liquid {%- endcomment -%}
<script
  src="https://cdn.jsdelivr.net/npm/[email protected]/swiper-bundle.min.js"
  integrity="sha384-REPLACE_WITH_COMPUTED_SHA384_FROM_TOOL"
  crossorigin="anonymous"
  defer></script>

Hydrogen / Oxygen Strict CSP Response Headers (entry.server.tsx)

hydrogen-csp.ts
import { createContentSecurityPolicy } from "@shopify/hydrogen";

export function buildShopifyCsp(nonce: string) {
  return [
    "default-src 'self'",
    `script-src 'self' 'nonce-${nonce}' https://cdn.shopify.com`,
    "connect-src 'self' https://monorail-edge.shopifysvc.com",
    "frame-ancestors 'none'",
    "object-src 'none'",
    "base-uri 'self'"
  ].join("; ");
}

Step-by-Step Hardening & Key Insights

  1. Confirm legacy checkout.liquid customizations are migrated to Shopify Checkout Extensibility UI Extensions.
  2. Move third-party marketing/analytics pixels into Shopify's sandboxed Customer Events (Web Pixels).
  3. Audit any custom Hydrogen storefront or theme.liquid external scripts in our HTML & CSP Linter.
  4. Attach SHA-384 SRI tags to every static CDN script and track your AoC + script inventory under Req. 11.6.1.
  • While Shopify manages the hosted checkout.shopify.com domain, headless Hydrogen storefronts and legacy checkout.liquid scripts directly impact merchant PCI governance.
  • Shopify Web Pixels isolate marketing tags inside restricted sandboxed iframes/workers so GTM or Meta Pixel cannot read card inputs.
  • Third-party JS loaded from unpkg or jsDelivr in theme files should always carry exact SemVer versions + SHA-384 integrity attributes.

Common Checkout Audit Pitfalls to Avoid

  • Loading theme scripts with @latest or unversioned CDN paths without SRI.
  • Deploying headless Shopify Hydrogen apps with 'unsafe-inline' and 'unsafe-eval' in CSP.
  • Assuming headless checkout redirects exempt storefront pages from security header monitoring.

More PCI DSS v4.0.1 & SRI Checkout Guides

← Back to PCI & SRI Checker Hub · Cluster 4: Security Headers & CSP → · Cluster 7B: Stripe/Creem Webhook HMAC → · CheckoutShield PCI Live Scan → · $49 PCI Compliance Pack →

Frequently Asked Questions

Does Shopify handle PCI DSS v4.0.1 Req. 6.4.3 & 11.6.1 automatically?

On standard Shopify Checkout Extensibility, Shopify manages the checkout environment and Web Pixels sandbox. However, headless Hydrogen storefronts, custom apps, and pre-checkout cart pages remain your security responsibility.

How do I compute SHA-384 SRI hashes for custom Shopify theme scripts?

Switch to the SRI Hash Generator tab above, paste or upload the exact minified JS/CSS file, and copy the generated integrity="sha384-..." crossorigin="anonymous" tag.

Where can I check my storefront's live CSP and script headers?

Run a live audit on CheckoutShield PCI (https://pci.runglab.dev) or Cluster 4 (/security-headers/).