PCI-DSS v4.0.1 Requirements That Live in Your Code, Not Your Network

PCI-DSS v4.0.1 is the only valid revision, and its last future-dated requirements took effect in March 2025. Requirements 6.2 and 6.3 are the ones developers own, and they are stricter than v3.2.1 in ways most teams have not yet absorbed.

DevSecCode Team · · Compliance · 8 min read

Meet PCI-DSS v4.0.1 requirements 6.2-6.4 in code

  1. Enable write-time scanning to support Req 6.2.4. Configure your scanner to surface findings as code is written. Req 6.2.4 asks for techniques that prevent or mitigate common attacks, and early findings are one way to support it.
  2. Configure transitive dependency scanning for Req 6.3.2 and 6.3.3. Enable full graph traversal (including transitive dependencies and shaded JARs). Match against a current CVE catalog and produce documented triage or remediation records for every flagged dependency.
  3. Add an automated attack-prevention solution for Req 6.4.2. Put a WAF or equivalent in front of public-facing web applications. Keep SAST and DAST in the pipeline as well, as they catch issues before release.
  4. Generate SARIF evidence with PCI control mapping. Export findings annotated with their PCI requirement number (6.2.4, 6.3.3, 4.2.1, 8.6.2, and so on). QSAs sample evidence. Clean per-finding mapping accelerates the assessment.
  5. Track CWE → PCI mappings as living artifacts. Use a scanner preset that maps the high-frequency CWEs (CWE-89, CWE-79, CWE-312, CWE-319, CWE-798) to their PCI requirement homes. The preset stays in sync with v4.0 reorganizations as PCI SSC publishes updates.

PCI-DSS v4.0.1: What Developers Actually Own

PCI-DSS v4.0.1 is the only valid version, and the last of the future-dated requirements became mandatory on March 31, 2025. The transition from v3.2.1 introduced 64 new requirements, and a meaningful subset live in software. Not in network segmentation or HSMs.

Requirement 6.2: Bespoke and Custom Software

6.2.1 requires all bespoke (custom-built) software to protect against known vulnerabilities by incorporating security in the software development lifecycle. This is not new, but PCI-DSS v4.0.1 6.2 adds specificity that v3.2.1 lacked:

  • Training must be role-specific and current (not a one-time annual checkbox)
  • Code review must cover security techniques "aligned to the OWASP guidelines or equivalent"
  • Automated scanning must be part of the SDLC for significant changes

6.2.4 requires software engineering techniques that prevent or mitigate common attacks, such as injection. 6.2.3 requires bespoke and custom code to be reviewed before release. Scanning at write time supports both, because issues surface before the code ships.

Requirement 6.3: Security Vulnerabilities

6.3.2 requires an inventory of bespoke, custom, and third-party software components. 6.3.3 requires system components to be protected from known vulnerabilities by installing applicable patches.

This maps to CWE-1395 (Dependency on Vulnerable Third-Party Component) and requires more than "we have Dependabot". It requires documented triage, risk acceptance, or remediation for every flagged dependency.

Requirement 6.4: Public-Facing Web Applications

6.4.2 requires an automated technical solution, such as a WAF, that detects and prevents web-based attacks. It replaced 6.4.1, the older review option, on March 31, 2025.

The CWE Mapping for PCI-DSS v4.0.1

The most common PCI-DSS findings map to:

  • CWE-89 (SQL Injection) → Req 6.2.4
  • CWE-79 (XSS) → Req 6.2.4
  • CWE-312 (Cleartext Storage of Sensitive Information) → Req 3.5.1
  • CWE-319 (Cleartext Transmission) → Req 4.2.1
  • CWE-798 (Hardcoded Credentials) → Req 8.6.2 (accounts usable for interactive login)

How Deva Addresses PCI-DSS v4.0.1

Deva's PCI DSS mapping ties code-level findings to requirements on Pro, based on PCI DSS v4.0. Findings surface in the editor, before code reaches production.

For Req 6.3.3, Deva's dependency analysis checks your dependency tree against known advisories, so your triage records start from concrete findings.

Frequently asked questions

When did PCI-DSS v4 become mandatory?
PCI-DSS v4.0 replaced v3.2.1, which was retired on March 31, 2024, and its future-dated requirements became mandatory on March 31, 2025. v4.0 was itself retired on December 31, 2024, in favor of v4.0.1. Every PCI assessment in 2026 is against v4.0.1.
What is PCI-DSS Req 6.2.4?
Req 6.2.4 requires software engineering techniques that prevent or mitigate common software attacks, such as injection. Review of bespoke and custom code before release sits in Req 6.2.3.
What does PCI-DSS v4.0.1 require for dependencies?
Req 6.3.3 requires system components to be protected from known vulnerabilities by installing applicable patches. The companion Req 6.3.2 requires an inventory of bespoke, custom, and third-party software components. 'We use Dependabot' is thin evidence on its own, so keep triage and remediation records.
Does PCI-DSS v4.0.1 require automated security scanning?
For public-facing web applications, yes. Req 6.4.2, which replaced Req 6.4.1 on March 31, 2025, requires an automated technical solution that detects and prevents web-based attacks, such as a WAF. SAST and DAST are good practice, but they do not meet that requirement.