Cluster 11 · PCI DSS 6.4.3 · Stripe · Evergreen CSP + Nonce

Stripe.js v3 & PCI DSS v4.0.1 Req. 6.4.3 / 11.6.1: Why SRI Breaks & Exact CSP Setup

Configure Stripe.js v3 (https://js.stripe.com/v3/) cleanly for PCI DSS v4.0.1 Requirements 6.4.3 and 11.6.1: avoid static SRI hash failures, enforce strict CSP script-src/frame-src/connect-src, and generate a QSA-ready script inventory CSV.

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
100 / 100 (A)
PCI 6.4.3 / 11.6.1 READY
External Scripts
2
Missing SRI/Pin
0
Evergreen PSPs
1
CSP Header
STRICT
Extracted Payment Page Script Inventory
Script / Block Category Status Required Control (SRI vs CSP/Nonce)
https://js.stripe.com/v3/ Evergreen PSP (Stripe.js v3) PASS
Evergreen PSP properly omits static SRI; enforce via strict CSP + Req. 11.6.1 header monitoring.
/assets/checkout.v3.js First-Party Script ('self') PASS
Covered by first-party origin / nonce policy.
PCI-643-PSP-OK: 1 evergreen PSP loader(s) classified for CSP/nonce PASS
Detected Stripe.js v3 — correctly distinguished from static CDN SRI.
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://js.stripe.com; style-src 'self'; img-src 'self' data: https:; connect-src 'self' https://api.stripe.com https://r.stripe.com; frame-src 'self' https://js.stripe.com https://hooks.stripe.com; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'; report-uri https://checkout.example.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"
"checkout.example.com","https://js.stripe.com/v3/","Evergreen PSP (Stripe.js v3)","Authorized","Strict CSP script-src host + 'nonce-...' + Req. 6.4.3 justification (Do NOT add static SRI)","nonce=r4nd0mN0nce987","Core card tokenization and 3DS2 iframe loader (Stripe.js v3). Evergreen endpoint; SRI unsupported by Stripe — authorize via strict CSP script-src + nonce and monitor via Req. 11.6.1.","Automated weekly or continuous HTTP header + script hash check via CheckoutShield PCI (https://pci.runglab.dev)"
"checkout.example.com","/assets/checkout.v3.js","First-Party Script ('self')","Authorized","CSP 'self' / 'nonce-...' (add SRI if served via CDN)","nonce=r4nd0mN0nce987","First-party application checkout bundle hosted on merchant origin.","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
Stripe Loader Script https://js.stripe.com/v3/ Evergreen loader — Stripe deploys frequent security updates; NEVER attach static SRI integrity=
CSP script-src 'self' 'nonce-...' https://js.stripe.com Avoid 'unsafe-inline', 'unsafe-eval', and wildcards (* / https:)
CSP connect-src & frame-src api.stripe.com, r.stripe.com, hooks.stripe.com Required for Stripe Elements tokenization, telemetry, and 3DS2 challenge iframes
Req. 11.6.1 Monitoring 7-day or continuous header/script diffing Detect tampering on checkout HTML and CSP headers via CheckoutShield PCI

Hardened Stripe.js v3 Payment Page CSP Header

stripe-checkout-csp.txt
Content-Security-Policy: default-src 'self'; script-src 'self' 'nonce-REPLACE_PER_REQUEST' https://js.stripe.com; style-src 'self'; img-src 'self' data: https://*.stripe.com; connect-src 'self' https://api.stripe.com https://r.stripe.com https://q.stripe.com; frame-src 'self' https://js.stripe.com https://hooks.stripe.com; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'; report-to csp-endpoint

Req. 6.4.3 Written Justification Entry for Stripe.js v3

stripe-643-justification.md
## Script: https://js.stripe.com/v3/
- **Owner / Vendor**: Stripe, Inc. (PCI DSS Level 1 Service Provider)
- **Business Justification (Req. 6.4.3)**: Core payment element loader required to render isolated PCI-scoped card fields and process 3D Secure 2 challenges without touching raw PAN data.
- **Authorization & Integrity Method**: Strict origin-locked Content-Security-Policy (`script-src 'nonce-...' https://js.stripe.com`), TLS 1.3 transport, and automated Req. 11.6.1 DOM/CSP monitoring (static SRI omitted per Stripe evergreen loader design).

Step-by-Step Hardening & Key Insights

  1. Load https://js.stripe.com/v3/ directly from Stripe (never self-host or bundle Stripe.js locally).
  2. Omit integrity="sha384-..." on js.stripe.com/v3/ so routine Stripe deployments do not break customer checkouts.
  3. Lock down Content-Security-Policy script-src, connect-src, and frame-src to Stripe's documented hosts plus a per-response nonce.
  4. Document js.stripe.com/v3/ in your Req. 6.4.3 script inventory CSV and monitor header/DOM integrity weekly under Req. 11.6.1.
  • Stripe explicitly documents that js.stripe.com/v3/ is an evergreen script whose bytes change regularly — adding static SRI causes checkout outages.
  • Under PCI DSS v4.0.1 Req. 6.4.3, merchants must BOTH ensure payment-page scripts are authorized/justified AND verify script integrity using CSP/nonces or SRI as appropriate.
  • Stripe Checkout (hosted checkout.stripe.com) moves card entry off your domain, whereas Stripe Elements / Payment Element embedded on your domain triggers full Req. 6.4.3 & 11.6.1 scope.

Common Checkout Audit Pitfalls to Avoid

  • Leaving Google Tag Manager, Meta Pixel, or Intercom widgets active on your Stripe Elements /checkout route without strict isolation.
  • Using script-src https: or 'unsafe-inline' alongside js.stripe.com — negating e-skimmer protection.
  • Omitting https://hooks.stripe.com from frame-src, causing 3DS2 card authentication modals to fail.

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

Should I add an SRI integrity hash to https://js.stripe.com/v3/?

No. Stripe.js v3 is an evergreen loader updated dynamically by Stripe. Adding a static sha384 integrity attribute will break checkout whenever Stripe pushes an update. Use strict CSP + nonces + Req. 6.4.3 justification + Req. 11.6.1 monitoring instead.

Does Stripe Elements require PCI DSS v4.0.1 Req. 6.4.3 and 11.6.1?

Yes. Any merchant page hosting the Stripe Elements iframe (SAQ A or SAQ A-EP) must protect the parent page scripts against e-skimming via authorized inventory, integrity controls, and tamper detection.

How can I monitor Stripe checkout CSP & script drift automatically?

Use CheckoutShield PCI (https://pci.runglab.dev) to run automated Req. 6.4.3 & 11.6.1 header, script-inventory, and change-detection checks.