Why these requirements exist
Web-skimming attacks (often called Magecart) inject JavaScript into checkout pages to copy card details as shoppers type them. The attack runs in the shopper’s browser, so server-side controls never see it. PCI DSS v4.0 added two requirements, mandatory since 31 March 2025, to close that gap.
Requirement 6.4.3: manage payment-page scripts
For every script that runs in the consumer’s browser on a payment page, you must:
- Authorise it: someone confirms it should be there;
- Assure its integrity: a method to confirm it hasn’t been tampered with;
- Keep an inventory with a written business or technical justification for each one.
Requirement 11.6.1: detect changes and tampering
You need a mechanism that detects unauthorised changes to the HTTP headers and the content of payment pages as received by the consumer browser, and alerts personnel. It must run at least weekly, or at a frequency set by your targeted risk analysis. Real-time is better.
What PCI doesn’t require
Neither requirement mandates blocking scripts. They require inventory, justification, integrity and change detection with alerting. Buy for what the standard asks, and for the evidence your QSA will accept.
The three approaches on the market
| Approach | Strengths | Trade-offs |
|---|---|---|
| On-page tag | Sees what real browsers run, including conditional scripts | The tag is itself a script on the page, so it must be minimal and integrity-pinned |
| Proxy | Sees every script payload in transit | Your page traffic flows through the vendor |
| Synthetic crawler | No code on your page | Can miss session- or geo-specific scripts; can be served a clean page |
A practical checklist
- List your payment pages, including hosted fields and iframes from your PSP.
- Build the inventory from real browsers, not just your source code: tag managers add scripts at runtime.
- Record an owner and justification for each script.
- Set up change detection with alerts to a monitored channel.
- Keep the history: your QSA will want evidence over time, not a screenshot.
How Longstride helps
The Web module’s Longstride tag builds the inventory from real shoppers’ browsers, gives you an approval and justification workflow, and alerts on new scripts and off-site form posts. It’s included in the Business plan. See the PCI solution.
This guide is a practical summary, not a substitute for the PCI DSS standard or advice from your QSA.