By NHI Mgmt Group Editorial TeamDomain: Cyber SecuritySource: JscramblerPublished February 12, 2026

TL;DR: PCI DSS v4 extends payment security expectations into the browser, where third-party JavaScript can now become the most visible and hardest-to-govern source of client-side risk, according to Jscrambler’s webinar with Marriott Vacation Worldwide. The practical shift is from backend-only compliance to continuous visibility, script-level control, and operational ownership of what executes on payment pages.


At a glance

What this is: This is Jscrambler’s webinar analysis of how PCI DSS v4 expands payment security into browser runtime, with a central finding that third-party JavaScript is the largest source of client-side risk.

Why it matters: It matters because payment-page scripts sit close to sensitive data and can bypass backend-only assumptions, forcing IAM, application security, and compliance teams to govern browser-executed code and the access it inherits.

By the numbers:

👉 Read Jscrambler's analysis of browser runtime controls for PCI DSS v4


Context

PCI DSS v4 changes the control boundary by treating the browser and payment page as part of the security perimeter, not just the backend systems behind it. That matters because JavaScript executes in the user session, where sensitive payment data can be observed, modified, or exfiltrated before traditional server-side controls ever see it.

The governance problem is not only client-side code risk, but also ownership drift across brands, codebases, and vendors. In environments with decentralized publishing workflows, teams can lose track of which scripts still touch payment data, which creates a real identity and access issue for service accounts, third-party integrations, and runtime trust.


Key questions

Q: How should organisations secure payment pages that rely on third-party JavaScript?

A: They should treat every script on a payment page as part of the control surface, then inventory it, assign ownership, and restrict its access to sensitive form data. The goal is not to eliminate all third-party code, but to make browser-side trust explicit, auditable, and revocable when business needs change.

Q: What breaks when client-side controls are missing on payment pages?

A: Attackers can skim card data directly in the browser, bypassing backend monitoring, network controls, and server-side logging. When scripts are not governed, the organisation may have no clear record of which code touched the page, which vendor introduced it, or when exposure began.

Q: How do you know if browser runtime protection is actually working?

A: Look for evidence that every payment page has a current script inventory, clear ownership, enforced policy review, and alerting on script changes. If teams cannot explain which scripts access sensitive fields and why, runtime protection is probably incomplete.

Q: Who is accountable when a third-party script exposes customer payment data?

A: Accountability sits with the organisation operating the checkout, even when a third party supplied the script or tag. PCI obligations do not transfer with outsourcing. Security, compliance, and product teams need explicit ownership for script approval, monitoring, and incident response because the browser is still part of the organisation’s control boundary.


Technical breakdown

Why browser runtime creates a different attack surface for payment data

Browser runtime is fundamentally different from backend execution because scripts run in an attacker-influenced environment. If a page contains payment fields, every included script can potentially observe DOM state, intercept input, or rewrite page behaviour before data is transmitted. That makes client-side security a runtime governance problem, not just a web application security issue. PCI DSS v4 reflects this by extending responsibility into the page itself, where trust must be continuously evaluated rather than assumed.

Practical implication: inventory every script that executes on payment pages and treat browser-executed code as a governed control surface.

Third-party JavaScript and the problem of delegated trust

Third-party JavaScript introduces delegated trust, meaning an organisation allows external code to execute with access that is often broader than intended. Analytics, marketing, and personalisation scripts frequently originate outside the core application team, yet they inherit the page context and can reach sensitive fields. The technical issue is not that all third-party code is malicious, but that permissions are rarely scoped to the minimum necessary in the browser. This creates a hidden trust chain that conventional backend controls do not manage well.

Practical implication: separate business utility from data access by restricting what each script can read, not just where it comes from.

Why manual CSP and script-hash management does not scale

Content Security Policy and Subresource Integrity can reduce exposure, but they depend on accurate policy upkeep and stable script inventories. In large environments, scripts change frequently, pages proliferate, and teams update code outside central security workflows. That means policy drift becomes inevitable unless there is automation around discovery, enforcement, and exception handling. The core architectural lesson is that client-side protection must be continuously maintained or it becomes a documentation exercise instead of a control.

Practical implication: use automation for script discovery and policy maintenance, otherwise browser controls will lag behind production changes.


Threat narrative

Attacker objective: The attacker wants to capture payment data directly from the browser session before it is protected by backend-centric security controls.

  1. Entry begins when a payment page loads third-party JavaScript that can observe or manipulate browser-side data paths.
  2. Escalation occurs when the script inherits the page context and reaches card-entry fields, analytics hooks, or other data flows that were never tightly scoped.
  3. Impact follows when sensitive payment data is skimmed from the browser without triggering traditional backend monitoring or network controls.

NHI Mgmt Group analysis

Browser runtime is now a governance boundary, not a delivery detail. PCI DSS v4 reflects a broader shift in security design: code executing in the browser can no longer be treated as outside the control perimeter. That matters because the browser is where delegated trust, third-party script execution, and payment data exposure intersect. For IAM and application security teams, the practical conclusion is that runtime access to sensitive fields must be governed as carefully as backend privilege.

Third-party script sprawl creates a client-side trust gap. Organisations often know which vendors they contract with, but not which scripts still execute on payment pages or what those scripts can access. That is a classic visibility problem, and it resembles other identity governance failures where ownership, lifecycle, and access scope drift apart. The reader should treat browser scripts as a governed population with defined owners, approved scope, and revocation paths.

Script-level control is the named concept this space needs. Script-level control means deciding what each browser script can do with sensitive data rather than relying on all-or-nothing blocking. This is a more precise governance model than blanket restriction because it preserves business functionality while reducing exposure. For practitioners, the conclusion is clear: use fine-grained browser control where business dependence on third-party code makes outright removal unrealistic.

Manual client-side policy management is operational debt. CSP, SRI, and script inventory reviews can all help, but they become fragile when the application estate is large and change is constant. The deeper issue is not the absence of policy language, but the inability to maintain policy fidelity at scale. Security teams should measure client-side protection as an operational discipline, not a one-time hardening exercise.

The compliance driver is now inseparable from the risk driver. PCI DSS v4 can be used as a catalyst, but the control objectives extend beyond audit readiness. Organisations that only chase evidence will miss the underlying browser runtime exposure that attackers exploit. Practitioners should use the standard to formalise ownership, monitoring, and exception handling for payment-page scripts.

What this signals

Browser-executed code is becoming part of the enterprise trust model, which means security teams need a control language that extends beyond network, endpoint, and server hardening. The operational signal is clear: if browser scripts can touch sensitive data, they need ownership, inventory, and revocation just like other privileged components.

Script-level control: the next governance step is to decide what each script may access, not just whether it is allowed to load. That shift aligns closely with identity thinking because delegated access in the browser behaves like a temporary privilege grant, and temporary privilege without oversight becomes hard to defend.

Teams that already manage third-party access, API keys, and workload identities should recognise the same pattern here: hidden dependencies, weak ownership, and change without review. Mapping payment-page scripts into existing governance workflows is the fastest way to reduce blind spots without slowing business teams.


For practitioners

  • Inventory every payment-page script Create and maintain a complete inventory of all JavaScript executing on pages that process card data, including third-party and legacy scripts that no longer have an obvious owner.
  • Assign explicit ownership for client-side code Map each payment page and script to a business owner, technical owner, and review cadence so shadow IT pages and scripts do not remain ungoverned.
  • Restrict script access to sensitive fields Apply browser-side controls that limit what individual scripts can read or transmit from payment forms, rather than relying only on network-layer inspection or blocking every third party.
  • Automate CSP and SRI maintenance Use automation to keep script policies aligned with production changes, because manual hash validation and policy updates do not scale across multiple brands and codebases.

Key takeaways

  • PCI DSS v4 brings browser execution into the payment security perimeter, which changes how teams should think about client-side risk.
  • Third-party JavaScript is the hardest part of payment-page governance because ownership, access scope, and change control drift quickly in large environments.
  • The practical response is continuous script inventory, fine-grained access restriction, and automation for policy upkeep, not reliance on backend-only controls.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 and PCI DSS v4.0 define the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AC-4Browser script access to payment data is a privilege-scoping problem.
NIST SP 800-53 Rev 5SI-4Runtime monitoring is relevant to detecting unexpected client-side script behaviour.
CIS Controls v8CIS-16 , Application Software SecurityClient-side script governance sits within application security control discipline.
ISO/IEC 27001:2022A.8.28Secure coding and application change control apply to browser-executed payment code.
PCI DSS v4.06.4.3PCI DSS v4 explicitly raises expectations for payment-page scripts and their controls.

Use PCI DSS v4 script controls to justify continuous monitoring and approval of payment-page JavaScript.


Key terms

  • Client-side code protection: A set of controls that makes browser-delivered application code harder to inspect, copy, or alter. It usually combines obfuscation, integrity checks, and release-stage enforcement so that proprietary logic remains usable for customers but more difficult for attackers to reverse engineer.
  • Third-Party JavaScript Risk: Third-party JavaScript risk is the exposure created when external scripts inherit access to a page’s runtime context. Those scripts may be legitimate, but they can still observe or manipulate sensitive data if organisations do not tightly scope their permissions and monitor changes.
  • Script-Level Control: Script-level control is the practice of applying different access rules to individual browser scripts instead of treating all page code the same. It lets organisations preserve functionality while preventing unnecessary access to cardholder data or other sensitive fields.
  • Delegated trust: Delegated trust is the decision to let another system or organization issue, validate, or transmit access on your behalf. It is common in cloud and SaaS environments, but it becomes risky when scope, duration, and revocation are not tightly controlled. In NHI governance, delegated trust must be explicit and continuously reviewable.

What's in the full article

Jscrambler's full research covers the operational detail this post intentionally leaves for the source:

  • Nine-month discovery workflow for mapping every page that accepts credit card data
  • Operational examples of browser-side restrictions that block data access without breaking marketing or analytics
  • How the team evaluated CSP, SRI, and CDN options before choosing a runtime approach
  • The practical mechanics of continuous visibility across multiple brands and codebases

👉 The full Jscrambler webinar summary covers script-level controls, visibility, and compliance trade-offs in more detail.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, workload identity, and secrets management. It helps practitioners connect identity controls to broader security and compliance programmes without overextending their scope.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 20, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org