Payment iframes and 6.4.3: which scripts are in scope
A payment iframe does not take your checkout page out of PCI DSS scope. In PCI DSS v4.0.1, requirements 6.4.3 and 11.6.1 cover the scripts on the parent page. The payment provider manages the scripts inside its own iframe. Scripts that create the iframe or start a redirect are in scope too. An attacker who controls the parent page can replace the iframe or cover it with a fake form.
Two pages in one checkout
Acme sells on shop.example. On the checkout page, John Doe sees his order total of $129.00 and a card form. The card form is an iframe from the payment provider. Everything around it comes from shop.example.
The PCI SSC guidance for 6.4.3 and 11.6.1 names the two documents. The merchant page that shows the iframe is the parent page. The document inside the iframe is the payment page. PCI DSS calls the company behind the iframe a TPSP or payment processor. This post calls it the payment provider.
Table 3 of that guidance splits the work:
| Scenario | Merchant responsibility | Payment provider responsibility |
|---|---|---|
| Embedded payment form (iframe) | Any scripts on the webpage that includes the iframe | Scripts within the iframe |
| Redirection mechanism | Any scripts on the webpage with the redirection mechanism | Any scripts that the provider includes for its services |
The iframe draws a line through the page. The fields belong to the provider. The page around the fields belongs to you.
What the v4.0.1 applicability notes say
PCI DSS v4.0.1 gives both requirements notes about embedded payment forms. SAQ A-EP v4.0.1 reproduces the requirement text and these notes.
Requirement 6.4.3
Requirement 6.4.3 covers all payment page scripts that load and run in the consumer browser. It asks for three things:
- A method to confirm that each script has authorization.
- A method to assure the integrity of each script.
- An inventory of all scripts, with a written business or technical justification for each one.
The applicability notes then draw the iframe line:
- The requirement applies to scripts from the entity environment and to scripts from third and fourth parties.
- It also applies to scripts in the entity webpage that includes an embedded payment page or form from the provider.
- It does not apply to the entity for scripts inside that embedded payment page or form.
- Those scripts are "the responsibility of the TPSP/payment processor to manage in accordance with this requirement".
Requirement 11.6.1
Requirement 11.6.1 asks for a change- and tamper-detection mechanism. It alerts personnel to unauthorized changes to security-impacting HTTP headers and payment page scripts. It checks them as the consumer browser receives them. It runs at least weekly, or at the frequency of a targeted risk analysis (Requirement 12.3.1).
The 11.6.1 notes repeat the iframe split. The requirement also applies to entities with a webpage that includes an embedded payment page or form. Scripts inside the iframe stay with the payment provider. Another note matters for parent pages. The intention is "not that an entity installs software in the systems or browsers of its consumers".
Both requirements were best practices until 31 March 2025. After that date, an assessment must fully consider them.
Why the parent page stays in scope
PCI DSS scope includes system components that could affect the security of cardholder data. The guidance states that this "includes e-commerce payment pages, and parent pages that are embedding an iframe". It adds a second point. An embedded third-party form does not make 6.4.3 and 11.6.1 inapplicable to the parent page.
SAQ A r1 explains why system requirements, such as Requirements 2, 6, 8 and 11, still apply to that page. The reason: "the above merchant webpages impact how the account data is transmitted". This is true "even though the webpages themselves do not receive account data."
FAQ 1438 adds a rule for SAQ A. All fields and web elements that capture card data must sit inside the iframe.
Multi-page and single-page stores
The guidance describes two cases:
- Multi-page application. Each step loads a new page, and the browser clears the old scripts. Typically only the parent page is in scope for 6.4.3 and 11.6.1.
- Single-page application. The page never fully reloads, so scripts from earlier views stay in memory. Both requirements apply to all views.
What the payment provider covers
The provider owns the scripts within its iframe. The browser also helps. The PCI SSC e-commerce best practices explain that iframes rely on the same-origin policy. This policy stops malicious scripts on the merchant website from interacting with the payment form in the frame.
Two requirements put the split on paper. Requirement 12.9.1 asks the provider for written agreements that acknowledge its responsibility for account data security. Requirement 12.9.2 asks it to say which requirements it owns, which the customer owns and which they share. The guidance asks providers to state how, or if, each party addresses 6.4.3 and 11.6.1.
The guidance also states a limit. A provider does not fully control the merchant website. So it cannot fully address skimming risk there.
Attacks that work around the iframe
The same-origin policy protects the card fields. It does not protect the parent page that decides which form John Doe sees.
Replacing the iframe
The 2017 PCI SSC e-commerce guidance describes this attack. An attacker who controls the merchant website can create alternative content for the frame. The payment still completes, and the attacker keeps a copy of the card data. Without monitoring and alerting, the merchant might never detect it.
In a browser, this needs one changed script. The script points the iframe to a look-alike host, or it draws its own form in that place. The current guidance covers this case. Where scripts create the iframe, 6.4.3 and 11.6.1 apply to those scripts.
Overlaying a fake form
The current guidance calls this double-entry skimming. The attacker inserts or overlays a false payment form before the real form appears. John Doe types his card number and gets an error. Then he types it again into the real iframe. Merchants often find this attack faster than silent skimming. Customers report the odd behavior, or the merchant sees it in a test.
Changing the redirect
The guidance states that 6.4.3 and 11.6.1 apply where scripts form part of a redirection mechanism. The 2017 best practices also advise a regular review of links and iframes to the payment gateway. The goal is to confirm that nobody changed them to point to an unauthorized location.
SAQ A merchants and the script criterion
In January 2025, the PCI SSC changed SAQ A. SAQ A r1 removed requirements 6.4.3, 11.6.1 and 12.3.1. It added an eligibility criterion instead. The merchant confirms "their site is not susceptible to attacks from scripts that could affect the merchant’s e-commerce system(s)."
The council states that this change does not remove or diminish the underlying PCI DSS requirements. FAQ 1588 limits the criterion to merchants with an embedded payment form, such as an iframe. It does not apply to a redirect. The merchant can confirm the criterion in one of two ways:
- Apply techniques such as those in 6.4.3 and 11.6.1 to the merchant webpage. The merchant or a third party can do this work.
- Get confirmation from the payment provider. The provider confirms that its solution protects the merchant payment page from script attacks. This holds when you follow its instructions.
A checklist for the parent page
- List every script on the parent page, with a justification. Include tag managers and the script that loads the iframe.
- Set a method to authorize each script and to check its integrity. The guidance names CSP and Subresource Integrity (SRI) as examples.
- Restrict the frame origins. The guidance notes that a CSP frame-src directive can define acceptable iframe origins.
- Watch headers and scripts as the browser receives them, at least weekly or at your risk analysis frequency.
- Ask the provider for its 12.9.2 responsibility split.
The guidance recommends frequent or real-time monitoring where feasible. A weekly check can leave days for a changed script to run.
How MonSpark helps on the parent page
MonSpark Client-Side Protection covers the parent page, which is your part of 6.4.3 and 11.6.1. Each scan records the scripts in every frame, including cross-origin frames. The MonSpark page agent is a script tag in the head of your page. An iframe from another origin is outside its reach. That iframe is in the scope of your payment provider.
On the parent page, each script version needs an approval that records who approved it and when. MonSpark keeps a SHA-256 hash for each version. A new, changed or removed script, or a changed header, opens an incident. MonSpark can also build a CSP header from the scripts and hosts that you approved.
See the Client-Side Protection page, or book a demo on your own checkout.


