Magento Open Source PCI DSS compliance

How a self-hosted Magento Open Source store enters PCI DSS scope, how to shrink that scope with hosted payment fields and CSP, and what evidence an assessor will ask for.

On this page

Which parts of a Magento Open Source store fall in PCI DSS scope

Your PCI DSS scope depends on how card data reaches your store, not only on which servers exist. If card numbers pass through your web servers, a script on your checkout page, or an extension that touches the payment form, those components are in scope even when a payment provider processes the transaction. The first question to answer is where the cardholder data is entered, transmitted and stored, and then which systems and people can affect that path. A self-hosted Magento Open Source store leaves that answer to you, because you choose the hosting, the payment integration, the extensions and the admin access model.

The work is harder than it looks because scope spreads beyond the checkout page. Third-party scripts loaded on checkout, payment extensions, custom modules that alter the order flow, admin accounts that can change payment settings, and the logs and backups that may capture sensitive data all count when an assessor maps the environment. Your patch cadence matters as well. Adobe advises upgrading every patch cycle to stay secure and PCI compliant, so an unpatched core or extension can enlarge the controls you must evidence. Confirm with your acquirer and your assessor which version of the PCI DSS standard and which validation level applies to your store, because those choices determine how much evidence you will be asked to produce.

DeployOpen plans and prepares the controls, configuration and evidence that an assessment will examine, including network segmentation, script controls, access settings and patch records. DeployOpen does not issue attestations or certifications. An independent assessor or qualified security assessor makes the scope determination and the compliance decision, so ask early which assessor your acquirer accepts and what they expect to see in the scoping documents.

Which store components can touch cardholder data

Scope in a self-hosted Magento Open Source store is set by what a component can see, store, transmit or influence, not by which server it runs on. The cards below walk through the components that usually decide whether the cardholder data environment stays small or grows to cover the whole platform.

Checkout and payment pages

The checkout and payment pages are where card numbers are typed in, so they are the most direct point of contact with cardholder data. If the store collects card fields on its own pages, those pages and the servers behind them fall in scope. Ask your payment provider whether card fields are hosted in an iframe served from their domain, and confirm that the store never receives the raw primary account number. Review the checkout templates in your custom theme, since a local change there can move the fields back into your environment.

Payment extension and its callbacks

The payment extension, often a module under app/code, handles tokenization, authorization requests and the webhook or redirect callbacks that report results back to the store. Custom payment code written in modules, themes or language packages sits in the same path, so any logging, debug output or error handling there can expose card-related data. Confirm which request and response fields the module writes to the database, logs or the admin order view, and check that callback endpoints verify the provider's signature before they change order state.

Admin panel and its users

The admin panel can view orders, export customer records, change payment settings and install extensions. Anyone with admin rights can therefore reach data that is in scope or change the code that handles it. List every admin role, the accounts that hold each role, and how sign-in is protected with two-factor authentication. Remove shared accounts and confirm that payment configuration changes are logged and reviewed.

Web and database tiers

The web nodes run the PHP application and the database stores orders, customers and any payment metadata the store keeps. If card data never reaches these servers, they still hold tokens, order records and admin sessions that the assessor will ask about. Document which hosts, database schemas and log files are in the assessed environment, and confirm that backups, replicas and staging copies follow the same controls. Keep production data out of non-production environments unless the same controls apply there.

Full-page cache and CDN layer

Varnish is the full-page cache for self-managed installations, and it sits in front of the web tier, so it handles every request and response. A cache that stores a checkout or account page by mistake can keep personal data and session content available to other visitors. Confirm which URLs are excluded from caching, and whether any CDN or edge layer in front of the store terminates TLS and can read request bodies. Treat these layers as in scope if they process any payment-page traffic.

Varnish cache docs

Third-party scripts loaded on checkout

Scripts from analytics tags, chat widgets, tag managers and marketing pixels run in the browser of the person typing card details. A script that is able to read the page can capture the card fields even though the store never stores them. These scripts influence scope because they can change what the payer sees and sends. Use a Content Security Policy that lists allowed script sources for payment pages, remove scripts that are not needed on checkout, and review every change to the list before it goes live.

CSP documentation

How card data flows through a hosted-fields checkout

The diagram starts in the shopper browser, where card entry happens inside payment provider hosted fields rather than on a Magento-rendered form. The provider returns a token to the storefront checkout page, so only that token and the order identifier move through the Magento application and into the database. Check that the trust boundary sits where your assessor expects, and confirm that no card value reaches Magento logs, admin screens or exports.

Card data stays in the provider's hosted fields, while Magento handles only tokens and order identifiers.

Hosted fields, redirect or on-page card capture: which model shrinks scope

This table compares four ways to take card payments on a self-hosted Magento Open Source store, from the least to the most card data touching on your own servers. Read each row against your payment provider's documentation and your assessor's view of your environment, because the scope outcome depends on how the integration is built and maintained. The main takeaway is that the model you choose determines how much of your code, network and scripts must be assessed, so settle it before design starts.

ModelWhen it fitsWhat it keeps in or pulls out of scopeOperational cost and what to confirm
Hosted payment fields in an iframeStores that want to keep the card form on their own checkout while the provider serves the card inputsCard fields are served by the provider's frame, so card numbers do not pass through store code. Scope depends on how the iframe is embedded and what scripts run on the page.Provider integration and token handling, checkout conversion testing, and script controls with CSP. Confirm with the provider which PCI DSS responsibility matrix applies and with the assessor how the page is classified.
Redirect to a provider-hosted pageStores that accept a lower level of checkout customization in exchange for fewer components they must secureCard entry happens on the provider's domain, so the store does not receive card data. Store servers and checkout pages still need assessment for redirects, return URLs and order integrity.Redirect flow testing, handling of abandoned and failed returns, and conversion tracking. Confirm the return and webhook signing approach with the provider and whether the assessor accepts your redirect design.
Server-side card capture on the storeRarely a good choice for new builds, sometimes seen in legacy setups or custom integrationsCard numbers reach store servers, so the full store environment, network, logs and admin access are in scope for assessment.Heavy ongoing assessment effort, data handling controls, log masking and a larger patching surface. Confirm with the assessor whether any reduction is possible and what evidence would be required.
Custom checkout forms posting card data to MagentoTeams building bespoke checkout forms that submit card fields to a Magento endpoint before passing them to a gatewayCard data is handled by Magento code and any custom module, so both are in scope. Scope is not reduced by the gateway call alone.Custom module review, input handling checks, extension vetting and checkout testing. Confirm with the provider and assessor whether this pattern is supported at all before any build work.

How Content Security Policy controls scripts on payment pages

Script control matters on checkout because a script that runs on the payment page can read what a shopper types before a payment provider's iframe isolates those fields. A tag manager rule, a stale analytics snippet or a compromised extension script can capture card data or redirect the form without touching the payment provider at all. Content Security Policy (CSP) is the browser-side control that limits which origins may load and execute scripts on a page, so it is the mechanism that turns the list of approved scripts into something the browser enforces. Magento Open Source supports CSP headers from version 2.3.5, and from 2.4.7 CSP runs in restrict mode by default on storefront and admin payment pages. Confirm the exact behavior of your version in the Magento configuration and the CSP documentation before you assume enforcement is already on.

Build the allowlist from an inventory, not from memory. List every origin that a payment page can load: the payment provider's script and iframe domains, each third-party tag, each extension that injects JavaScript or styles, and any font or image host those components call. For each entry, record the owner, the business reason and the directive it needs, such as script-src or frame-src. Keep inline script exceptions to a minimum, because each one weakens the policy. Use the policy definitions in Magento's CSP configuration to whitelist entries per store scope, and review the results in a non-production environment that mirrors the live checkout.

Test in report-only style before enforcement. Deploy the policy in report mode, run a full checkout for each payment method and each store view, then collect violation reports and classify each one as a missing legitimate origin, an unexpected script or a defect in your own code. Enforce only after the unexpected items are removed. Treat the allowlist as a controlled change: every new extension, tag, payment method or provider update must trigger a review of the affected directives and a fresh checkout test, and that review belongs in the change record that an assessor will ask to see.

Building the PCI DSS scope reduction in order

This sequence moves a Magento Open Source store from an undefined cardholder environment to a documented scope that an assessor can test. Each step produces evidence that the card data path, the scripts on checkout and the people with admin access are known and controlled.

  1. Confirm the Magento Open Source version and support end date

    Your store team records the exact Magento Open Source version, PHP version and service versions in production, then compares them with Adobe's lifecycle dates. Adobe's policy gives each 2.4.x release three years of standard support from general availability, and the release notes list the end of regular support for each line. Adobe recommends upgrading every patch cycle to stay secure and PCI compliant, so a version that is past its support date or behind the current patch level becomes a finding before the assessment starts. Done when the version, its end of support date and the next patch window are written in the compliance file and the assessor has seen them.

  2. Define the cardholder data environment on paper

    The security lead and the store owner list every system that stores, processes or transmits card data or could affect the payment page. That usually includes the web nodes serving checkout, the database, any cache or queue that holds order payloads, the admin panel, log files, backups and any ERP or middleware that receives order records. Systems that never touch card data are recorded separately with the reason they are out of scope. Done when a signed scope statement lists each component, its role and its owner, and the team can explain why each excluded system cannot receive card numbers.

  3. Choose the payment integration model

    The integration model decides how much of the store falls inside the cardholder data environment. A hosted payment page or hosted fields served by the payment provider keep card entry off your servers, while a direct post or server-side card capture puts your web tier in scope. Confirm with the payment provider and your acquirer which model is supported for your store, which self-assessment questionnaire type applies to it, and what the provider's responsibility matrix covers. Done when the chosen model, the provider's attestation of compliance and the responsibility split are on file and the team has tested the flow end to end in a non-production store.

  4. Inventory every script and extension on checkout

    The developer or security engineer lists every JavaScript file, tag, pixel, third-party widget and payment extension loaded on cart, checkout and the order confirmation page, including those injected by extensions and tag managers. Each entry gets an owner, a source origin and a business reason, and extensions that are unmaintained or that run code on the payment page are flagged for removal or replacement. The extension audit feeds this list. Done when the inventory matches what a browser actually loads on a full checkout run, and no entry is unexplained.

  5. Configure the CSP allowlist and test payment pages

    The developer sets Content Security Policy headers for the storefront and admin payment pages, allowing only the origins confirmed in the inventory. Magento Open Source supports CSP headers from 2.3.5, and from 2.4.7 CSP runs in restrict mode by default on payment pages, so the team should confirm which mode is active before changing anything. Run the policy in report-only mode first, complete a full checkout with each payment method, and review the violation reports. Done when a test checkout produces no violation reports for unexpected script origins, and the final policy is deployed in enforce mode with its change recorded.

  6. Lock down admin access and patching

    The security team restricts admin sign-in to named accounts with two-factor authentication, removes unused admin users and integration tokens, limits admin access by network where practical, and assigns a named owner for each security patch. Adobe documents that security patches are released at least annually for all supported lines and that a full patch ships each May for the 2.4.x LTS line, so the patch calendar should follow those releases. Done when the admin user list matches the approved roster, access logs show only expected sign-ins, and a dated patch record exists for the current release.

  7. Produce the scope diagram and data flow for the assessor

    The compliance lead assembles a scope diagram showing every in-scope system, network segment and connection, plus a data flow that traces a card transaction from the shopper's browser through the payment provider to the order record and any downstream ERP. The package also includes the CSP policy, the script inventory, the admin access roster, the patch record and the provider's attestation. Ask the assessor which evidence format they prefer, and confirm that the diagram matches the production environment rather than the design document. Done when a walkthrough of one live test order shows that card values never appear in store logs, database order fields or message queues, and the assessor accepts the package as the starting point for the assessment.

Patching, access and script controls assessors check first

Assessors usually start with the controls that decide whether a self-hosted store can keep taking card data safely: current patches, locked-down admin access, controlled deployments, vetted extensions, restricted payment page scripts and logs of changes. Each one connects to a specific artifact you can show.

Patch cadence on a supported line

Stores that fall behind on the 2.4.x line lose security fixes, and Adobe recommends upgrading every patch cycle to stay secure and PCI compliant. Check that the running version is still inside its standard support window, and that the team has a dated schedule for applying each security patch. Evidence is the version record, the patch change tickets and the test results from the staging run before each release.

2.4.7 regular support ends
May 31, 2027
Lifecycle policy

Admin accounts with two-factor authentication

Admin accounts control payment settings, orders and code deployment, so a compromised login can expose the whole store. Require two-factor authentication for every admin user, remove shared accounts, and grant each role only the permissions its job needs. Evidence is the user list with roles, the 2FA enforcement setting and a periodic access review signed by the store owner.

File permissions and deployment hygiene

Writable code directories and leftover setup files let an attacker change payment logic without touching the admin panel. Confirm that code is deployed from version control through a controlled pipeline, that production file permissions follow the vendor guidance for the install, and that developers do not edit live files. Evidence is the deployment log, the permission check output and the record of who can push to production.

Extension vetting before install

Each third-party module runs with the same privileges as core code and can read or alter checkout data. Before installing, review the publisher, the code, its update history and whether it touches payment or customer data, then record the decision. Evidence is the approved extension register, the review notes and the list of modules removed after review.

CSP enforcement on payment pages

A script added to the checkout page can capture card details even when the payment fields are hosted by a provider, so script sources on payment pages need strict control. Magento Open Source supports Content Security Policy headers from 2.3.5, and from 2.4.7 the policy runs in restrict mode by default on storefront and admin payment pages. Confirm the policy is enforced, not report-only, and that every allowed source is documented. Evidence is the live header capture and the approved source list.

CSP documentation

Logging of admin and payment changes

Assessors look for a trail showing who changed payment configuration, user roles, extensions and code, and when. Enable admin action logging, forward logs from the web and database tiers to a central store that administrators cannot edit, and review them on a schedule. Evidence is sample log entries for a configuration change, a role change and a deployment, plus the review record.

What drives PCI DSS effort on a Magento store and how to keep it down

This table lists the main factors that raise PCI DSS effort on a self-hosted Magento Open Source store, why each one adds work, and the practical way to reduce it. Read it as a checklist of what to fix before asking a partner for a quote, since the final cost depends on the written scope and the assessor's requirements.

DriverWhy it raises effortHow to keep it down
Number of payment methods and integrationsEach gateway, redirect or stored-credential flow adds systems, data paths and configuration to review and evidence.Choose one payment model with hosted payment fields where possible and retire unused methods before the assessment.
Custom checkout codeBespoke checkout logic that touches card data or payment callbacks must be documented, tested and reviewed on every change.Keep payment handling in the gateway's supported code path and limit custom checkout changes to presentation and business rules.
Third-party extensions and scripts on checkoutEvery script loaded on payment pages expands the set of code that can affect the payment page and must be justified and monitored.Maintain a documented extension and script inventory, remove unused tags, and restrict payment page scripts with Content Security Policy.
Admin users and environmentsEach admin account, shared login and non-production copy with live data widens access review and evidence collection.Use named admin accounts with two-factor authentication, remove dormant users, and keep test environments free of real cardholder data.
Hosting layout (single node or multiple nodes)More web, database, cache and queue nodes mean more hosts to harden, patch, log and show in network diagrams.Document one standard build per tier, manage configuration centrally, and keep the cardholder data environment as small as the architecture allows.
Upgrade and patch frequencyAdobe's upgrade guide recommends upgrading every patch cycle to stay secure and PCI compliant, so skipped patches create backlog and audit findings.Set a repeatable patch routine with a test window, and track the supported 2.4.x end of support dates for the release in use.
Evidence collection across environmentsAssessors ask for dated records from every in-scope system, and gathering them by hand for several environments takes repeated effort.Agree the evidence list in advance, automate log and configuration exports where possible, and confirm the format with your assessor.

How to test that card data stays out of your servers

The only way to confirm that your PCI DSS scope is what your team says it is will be a set of tests you can repeat, not a diagram. Start with checkout tests that capture network traffic from a test browser session through a full order. Record every request the page makes and confirm that card number, expiry and security code values appear only in requests to the payment provider's domains, never in requests to your Magento endpoints. If the payment fields are hosted iframes, the traffic from the store page should carry no card values at all. Run the same capture against the cart, the one-page checkout, and any reorder or saved-card path, because each is a place where a developer can add a field that posts to the store.

Next, search what the store writes down. Run a search of web server access logs, application logs, the var/log directory, queue and cron output, and the database for card-like patterns after a set of test orders, including deliberately failed payments. Pair this with a search of the sales_order_payment and related tables for anything beyond the tokens and masked values your provider returns. Then check CSP violation reports collected during checkout. A blocked script on a payment page is a signal that something new is loading, so each report should be explained. Finally, review the admin change log after a test order and confirm that payment method, script and theme changes made during the test window are recorded against named users.

When a test fails, treat it as a release blocker. A common response is to disable the script or extension that breaks the CSP policy on the payment page, then rerun the full test set rather than only the failing check, since a fix can shift traffic elsewhere. Record each failure, its cause and the retest result, because an assessor will ask for that trail. Repeat the whole set after every Magento patch, extension change and theme release, and confirm the expected results with your payment provider and your QSA before you rely on them. Ask your implementation partner to name who runs the tests, who signs off the results and where the evidence is stored.

Questions teams ask before hiring help with Magento PCI DSS work

Can our team handle Magento PCI DSS compliance work without outside help?

Yes, many teams do the scoping and configuration in-house, but the work spans several roles and it recurs. Your developers own the code and themes, your admin or ops staff own patching and hosting, and your payments lead owns the payment provider relationship and the evidence. The harder part is keeping the scope definition current after every change. Before deciding, list who will maintain each control and whether they have time for it every patch cycle. Teams with stretched staff often bring in a partner for the initial build and evidence pack, then keep the internal ownership.

What does the work need from our internal team?

Plan for time from four groups: administration for the store and hosting, payments for provider and acquirer contact, hosting or infrastructure for network segmentation and logging, and developers for theme, module and script changes. Each group should name a single owner. Payments staff are often the bottleneck because the acquirer must confirm the integration model in writing. Ask any partner to show, in the written scope, which internal roles they expect to contribute and how many review sessions they need.

What makes the cost of PCI DSS work go up or down?

Scope is the main driver. A store that redirects card entry to a hosted payment page has fewer systems to assess than one that collects card data on its own pages. Other drivers include the number of third-party extensions that touch checkout, the number of hosting environments, custom payment flows, and how much evidence the assessor will request. Ask for a quote that lists each system in scope, each deliverable, and the assumptions about your environment. A quote without a written scope is hard to compare.

Does a DeployOpen engagement give us a PCI DSS certificate?

No. DeployOpen prepares systems, controls and evidence for a compliance assessment, but it does not issue audit reports, attestations or certifications. Your assessor, typically a Qualified Security Assessor for a full assessment or the process your acquirer specifies for a smaller merchant, makes the determination. Ask your acquirer which validation route applies to your transaction volume and channel before you agree on a scope, so the evidence you collect matches what the assessor will request.

How does patch timing affect our PCI DSS position?

Patch timing matters because an unsupported platform or an unpatched component can fail a requirement that your assessor checks. Adobe's lifecycle policy gives each 2.4.x release three years of standard support from general availability, and the end of regular support dates differ by release. For example, end of regular support falls on August 11, 2026 for 2.4.6 and May 31, 2027 for 2.4.7. Adobe's upgrade guide recommends upgrading every patch cycle. Confirm your own patch calendar, test environment and rollback steps with your team before the first assessment.

Does using Magento Open Source or Mage-OS change our PCI DSS scope?

The distribution does not change the scope by itself. Scope depends on how your store receives, processes, stores or transmits cardholder data and which systems connect to that flow. Magento Open Source and Mage-OS both run the checkout code and both need the same controls around hosting, patching, script control and access. What changes is the patch source and the timing, since Mage-OS is a community distribution built on Magento Open Source. Ask your assessor and your provider to confirm how the chosen distribution's security patches are obtained and documented.

What should we confirm with our payment provider and acquirer first?

Confirm three things in writing: the integration model (for example, hosted fields or redirect versus payment data passing through your servers), the validation route your transaction volume requires, and which self-assessment or attestation documents they accept. Also ask how they expect you to handle script loading on payment pages, since this affects your Content Security Policy design. Get the answers before you finalize the architecture, because changing the integration later often changes the scope and the evidence.

How long does PCI DSS work take for a Magento store?

The duration depends on scope, the number of environments, how many third-party extensions touch checkout, and how quickly your internal reviewers respond. A store with one hosted payment integration and a single production environment usually needs less time than a multi-channel store with custom payment flows. Ask for a timeline in the written scope that lists dependencies on your payment provider, your hosting team and your assessor. Timelines that do not name these dependencies tend to slip.

How DeployOpen scopes, builds and hands over PCI DSS controls

DeployOpen starts by defining which Magento Open Source components touch cardholder data, then builds and documents the controls around them inside your own infrastructure. Each step produces evidence your compliance team and assessor can review, and the work stays with your organization after handover.

How we scope

  • Map every storefront, admin, checkout and integration path that handles or could receive card data.
  • Record the payment method chosen, including whether card fields are hosted by the payment provider.
  • Agree the written scope, deliverables and timeline before any build work starts, as fixed-scope engagements.

How we build

  • Configure hosted payment fields and content security policy rules for payment pages, then test them in staging.
  • Set up patching, file permission and access controls aligned with the PCI DSS requirements in scope.
  • Test the storefront, admin and payment flow for security weaknesses before production release.

How we hand over

  • Deliver an architecture and scope document showing which systems are in and out of the cardholder data environment.
  • Provide configuration records, patch logs and control evidence organized for your assessor's requests.
  • Train your internal team on patch cycles, CSP changes and the evidence to keep current between assessments.

How we support

  • Offer ongoing support, upgrades and continuous testing as retainers after the initial handover.
  • Retest affected payment pages and controls after each patch, upgrade or extension change.
  • Confirm with your assessor or qualified security assessor which evidence formats and scope statements they accept.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.