IT lexicon › Security › Payment page scripts (PCI DSS 6.4.3)

Payment page scripts (PCI DSS 6.4.3)

Security På svenska → Updated: 2026-11-01

Two PCI DSS 4.0 requirements that make online merchants account for every piece of JavaScript running in the customer's browser while the card number is typed in.

Requirement 6.4.3 says every script loaded on the payment page must be authorised, have a written justification, appear in an inventory and have a method assuring its integrity. Requirement 11.6.1 adds a mechanism that detects unauthorised changes to the payment page's content and HTTP headers as the browser receives them, checked at least weekly. Both became mandatory on 31 March 2025.

The backstory is Magecart: a hijacked analytics or chat widget can read the form fields no matter how well the server is built. CSP and SRI are the usual tools, though SRI copes badly with third-party scripts that change every week. In January 2025 the requirements were lifted out of SAQ A for merchants using an embedded payment frame, provided they confirm their site isn't susceptible to script attacks. An attestation is, of course, easier to write than an inventory.

← Back to the lexicon