PCI DSS Requirement 6.4.3 requires organisations to manage every script loaded and executed in the consumer's browser on payment pages: each script is authorised, its integrity is assured, and an inventory with written business justification is kept. It targets e-skimming, where attackers inject or tamper with scripts to steal card data.
Why Requirement 6.4.3 Exists
PCI DSS Requirement 6.4.3 exists because payment pages are a high-value target for script injection and browser-side tampering. Attackers do not need to break the payment application itself if they can alter a script, replace a dependency, or quietly add a new one that captures card data before it reaches the legitimate payment flow.
The control treats the browser as part of the payment environment. That matters because the risk is not limited to server compromise, it also includes third-party widgets, analytics tags, tag managers, and other scripts that can change what the customer’s browser executes. In practice, the requirement turns browser scripts into managed assets rather than incidental page content.
What Authorisation and Integrity Mean for Payment Page Scripts
Under this requirement, every script on a payment page needs clear business justification, approval, and integrity protection. The goal is to know which scripts are permitted, why they are there, and whether they have been altered since they were authorised. This is the core defence against e-skimming, often called web skimming or Magecart-style activity.
Integrity can be enforced in different ways, but the security objective is consistent: if a script changes unexpectedly, the organisation should be able to detect it or prevent it from running. That usually means combining inventory discipline with technical controls such as script integrity checks, content restrictions, and monitoring of script changes and browser-side behaviour.
How Organisations Prove Exposure and Control the Scope
Exposure assessment starts with an accurate inventory of the scripts that execute on payment pages, including first-party code and externally hosted dependencies. Organisations then validate where those pages are served, which page paths are in scope, and whether any page elements pull code from third parties that could alter the payment experience.
That review is easier when organisations keep payment page ownership explicit and tie each script to a business purpose. For a broader view of how PCI DSS obligations map to scripts, scope, and related controls, see the PCI DSS 4.0 Guide and PCI DSS Requirement 6 Guide. If the organisation depends on external providers or shared delivery models, the PCI DSS for Service Providers and Responsibility Matrix Guide helps clarify who owns script-related controls and evidence.
Detection, Review, and Response After Script Tampering
Requirement 6.4.3 is not only about prevention, it also supports detection and investigation. If a script is changed, injected, or replaced, organisations need a way to spot the deviation, review when it appeared, and determine whether browser-based card theft occurred. That makes change detection, logging, and post-incident review part of the control story, not separate concerns.
When tampering is suspected, the practical question is whether the malicious script persisted long enough to capture data, whether the compromise spread to other pages, and whether the payment journey was altered in a way that exposed cardholder data. For related monitoring and investigation depth, the PCI DSS Requirement 11 Guide and PCI DSS Requirement 10 Guide are useful complements.
Risk and Threat Considerations
Payment-page scripts create a concentrated attack surface because a single malicious line of JavaScript can intercept card entry, modify form behaviour, or exfiltrate data to an attacker-controlled endpoint. The danger is amplified when scripts are numerous, externally hosted, or poorly inventoried, because defenders may not notice that a trusted page has been turned into a data theft channel.
Failure mechanism: An attacker compromises a script source, injects new code into the page, or abuses an allowed dependency so the browser executes hostile logic during payment capture.
Impact: Card data can be stolen in real time, fraud may continue until the script is removed, and the organisation may face breach response, card brand scrutiny, and loss of customer trust.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 addresses the attack and risk surface, while OWASP ASVS and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP ASVS | V15 — Secure Coding and Architecture | Supports controlling third-party script inclusion and security-relevant browser-side design |
| Recommendation — Design payment pages so external scripts are minimised, justified, and controlled by architecture. | ||
| CIS Controls v8 | CIS-16 — Application Software Security | Covers secure application development practices that reduce script injection and dependency abuse |
| Recommendation — Build secure development controls that review and govern browser-executed code paths before release. | ||
| OWASP API Security Top 10 | API8 — Security Misconfiguration | Misconfigured delivery paths and headers can weaken browser-side script protection on payment pages |
| Recommendation — Harden payment-page delivery settings so scripts cannot be altered or injected through weak configuration. | ||
Practitioner Guidance
Why practitioners should care: The control only works if the script inventory is complete and kept current. If a page owner cannot explain why each script exists, the organisation cannot reliably judge whether a new dependency is legitimate or risky.
What to watch for: Pay close attention to tag managers, marketing tags, payment widgets, and other shared dependencies that can change without a visible application release. Those are common places where authorised scripts become unauthorised risk.
Practitioner takeaway: Treat payment-page scripts as governed security assets, not front-end convenience code.
Related resources from NHI Mgmt Group
- Guide: PCI DSS for E-commerce Payment Page Scripts Guide
- What breaks when organisations depend on application logs alone for PCI DSS Requirement 10?
- Why does PCI DSS Requirement 10 create operational risk when logging is incomplete?
- What is the difference between application logs and user activity monitoring for PCI DSS Requirement 10?
- How does PCI DSS Requirement 11.6.1 work?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org