Cluster 11 · PCI DSS v4.0.1 Req. 6.4.3 & 11.6.1 · WebCrypto SRI Generator

PCI DSS v4.0.1 SRI Hash Generator & Checkout HTML / CSP Linter

Compute real SHA-384 & SHA-256 Subresource Integrity (SRI) tags locally via WebCrypto, lint checkout HTML + CSP headers across evergreen PSP loaders vs. pinned CDN scripts, and export a Req. 6.4.3 Justification CSV + Strict Checkout CSP.

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
0 / 100 (F)
AUDIT RISK — FIX SCRIPT & CSP GAPS
External Scripts
4
Missing SRI/Pin
2
Evergreen PSPs
1
CSP Header
UNSAFE
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.
https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js Static External Script ERROR
Needs unpinned version (@latest / .x), missing SRI integrity="sha384-...", missing crossorigin="anonymous".
https://www.googletagmanager.com/gtag/js?id=G-CHECKOUT99 Third-Party Analytics / Pixel ERROR
Remove marketing/analytics tags from cardholder pages unless strictly justified and authorized.
Inline <script> block #1 (97 chars) Inline Script ERROR
CSP 'nonce-...' (move to external + SRI if possible)
/assets/checkout-init.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-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-643-UNPIN: 1 unpinned external script URL(s) detected (@latest / .x / unversioned CDN) ERROR
Replace floating tags like @latest or @3.x.x with an exact SemVer release and generate a matching SHA-384 SRI hash.
PCI-643-TRACKER: 1 marketing/analytics tracker(s) loaded on payment page ERROR
Detected https://www.googletagmanager.com/gtag/js?id=G-CHECKOUT99. PCI DSS Req. 6.4.3 requires every script on a payment page to be strictly necessary and formally authorized.
PCI-643-INLINE: Unprotected inline JavaScript (1 <script> block(s), 0 on* handler(s)) ERROR
Eliminate inline scripts/handlers or bind inline <script nonce="..."> blocks with a per-request CSP nonce so 'unsafe-inline' can be removed.
PCI-CSP-INLINE: CSP script-src allows 'unsafe-inline' without a nonce ERROR
Remove 'unsafe-inline' (or pair with per-request 'nonce-...') to prevent injected inline skimmers from executing.
PCI-CSP-EVAL: CSP script-src permits 'unsafe-eval' ERROR
Remove 'unsafe-eval' from payment pages so string-to-code injection vectors (eval / new Function) stay blocked.
PCI-CSP-FRAME: Missing CSP frame-ancestors directive WARN
Add frame-ancestors 'none' (or 'self') to protect checkout UI against clickjacking overlays.
PCI-CSP-OBJ: Add object-src 'none' WARN
Blocks legacy plugin execution vectors on checkout pages.
PCI-CSP-BASE: Add base-uri 'self' WARN
Prevents <base href> hijacking of relative checkout script URLs.
PCI-1161-REPORT: No CSP report-to / report-uri endpoint configured WARN
PCI DSS v4.0.1 Req. 11.6.1 requires alerting on unauthorized script or security-header changes at least every 7 days (or continuous telemetry).
Generated Strict Checkout CSP Template
default-src 'self'; script-src 'self' 'nonce-REPLACE_PER_REQUEST' https://js.stripe.com https://cdn.jsdelivr.net; 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://shop.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"
"shop.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)","MISSING","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)"
"shop.example.com","https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.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)"
"shop.example.com","https://www.googletagmanager.com/gtag/js?id=G-CHECKOUT99","Third-Party Analytics / Pixel","REMOVE / UNAPPROVED","Remove from /checkout OR isolate via sandboxed worker + formal QSA justification","MISSING","Non-payment third-party tag detected on checkout page — high PCI DSS v4.0.1 Req. 6.4.3 audit risk.","Automated weekly or continuous HTTP header + script hash check via CheckoutShield PCI (https://pci.runglab.dev)"
"shop.example.com","Inline <script> block #1 (97 chars)","Inline Script","Action Required","CSP 'nonce-...' (move to external + SRI if possible)","MISSING","Inline payment-page script — eliminate or bind with per-request cryptographic CSP nonce.","Automated weekly or continuous HTTP header + script hash check via CheckoutShield PCI (https://pci.runglab.dev)"
"shop.example.com","/assets/checkout-init.js","First-Party Script ('self')","Authorized","CSP 'self' / 'nonce-...' (add SRI if served via CDN)","MISSING","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].

10 Payment Stack & Checkout CSP Implementation Guides

Exact PCI DSS v4.0.1 Req. 6.4.3 & 11.6.1 patterns across Stripe, Shopify, WooCommerce, Next.js, Cloudflare Workers, Nginx, Magento, Braintree, Adyen & MoR stacks.

Cross-cluster resources: Cluster 4: HTTP Security Headers & Strict CSP → · Cluster 7B: Stripe/Creem Webhook HMAC & CORS → · Cluster 7A: SBOM & Sigstore Validator → · CheckoutShield PCI Live Scan →

Frequently Asked Questions

Why shouldn't I add an SRI integrity= hash to js.stripe.com/v3 or paypal.com/sdk/js?

Payment processors deploy evergreen loaders whose bytes change frequently for security and fraud updates. Attaching a static SHA-384 hash breaks checkout when the PSP updates its script. Under PCI DSS v4.0.1 Req. 6.4.3, authorize evergreen PSPs via strict CSP + nonces + written business justification, and reserve SRI for pinned static third-party scripts.

What is the difference between PCI DSS v4.0.1 Requirement 6.4.3 and 11.6.1?

Requirement 6.4.3 governs script authorization, integrity verification (SRI/CSP), and written justification for every script running on a payment page. Requirement 11.6.1 mandates an automated change- and tamper-detection mechanism evaluating security-impacting HTTP headers (like CSP) and payment-page script content at least every 7 days or continuously.

Does this SRI & PCI HTML linter send my source code or checkout HTML to any server?

No. Both WebCrypto SHA-384/SHA-256 hashing (crypto.subtle.digest) and HTML/CSP linting execute 100% locally in your browser under strict CSP connect-src 'none'.