[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fLboQs_7_DWfCfM3qVrSsiPsLtF1LIMJPnVRLvtdnLyc":3},{"lesson":4},{"id":5,"slug":6,"article_id":7,"title":8,"body":9,"prevention":10,"framework_refs":11,"framework_notes":17,"status":23,"created_at":24,"published_at":25,"article":26,"tags":30,"podcasts":43,"controls":44},"3da8e56b-baec-4564-a1ce-6880c2f15305","malicious-third-party-javascript-compromised-major-websites-via-trusted-cdn","d9d63eb5-cd50-4749-9253-7c0a58e99ca8","Malicious Third-Party JavaScript Compromised Major Websites via Trusted CDN","Attackers gained administrative access to a third-party vendor's CDN platform and injected malicious JavaScript that was then served to customers of major banks, airlines, and news publishers — all of whom implicitly trusted the vendor's scripts. This attack illustrates that your security perimeter extends to every external script your site loads, since browsers execute third-party code with the same trust as your own. Without strict Content Security Policy enforcement and a maintained inventory of script dependencies, organizations have no mechanism to detect or block unauthorized script changes. The incident highlights how a single compromised vendor can cascade into a widespread data-theft operation affecting payment card details, cryptocurrency transactions, and session cookies across dozens of high-profile organizations.","**Immediate actions:**\n- Audit and inventory all third-party JavaScript dependencies currently loaded on your web properties, including indirect\u002Ftransitive scripts.\n- Enforce a strict Content Security Policy (CSP) with allowlisted script sources and use `integrity` attributes (Subresource Integrity) to cryptographically pin third-party scripts to known-good hashes.\n\n**Long-term improvements:**\n- Segregate sensitive pages (checkout, authentication, banking flows) from general analytics and marketing scripts to limit blast radius if a vendor is compromised.\n- Establish a formal third-party vendor security review process that assesses the security posture of CDN and script providers before onboarding and on a recurring basis.\n- Treat third-party script updates as a change-management event, requiring testing and verification before production deployment.\n\n**Detection measures:**\n- Implement real-time monitoring and alerting for unexpected changes to script hashes or new script sources appearing in page loads.\n- Deploy client-side threat detection or a web application firewall capable of identifying anomalous data exfiltration patterns such as card data or cookie values being sent to unknown domains.",[12,13,14,15,16],"NIS2 Article 21(2)(d)","CIS Control 2: Inventory and Control of Software Assets (v8)","OWASP A08:2021 Software and Data Integrity Failures","PCI DSS Requirement 6.4","NIST SP 800-53 SA-12: Supply Chain Protection",{"NIS2 Article 21(2)(d)":18,"PCI DSS Requirement 6.4":19,"NIST SP 800-53 SA-12: Supply Chain Protection":20,"OWASP A08:2021 Software and Data Integrity Failures":21,"CIS Control 2: Inventory and Control of Software Assets (v8)":22},"This point explicitly requires security measures addressing supply chain risks and the security of relationships with direct suppliers and service providers, which would have mandated assessing the CDN vendor's platform security before trusting its scripts.","PCI DSS Requirement 6.4 mandates that organizations protect web-facing applications from known attacks and manage all payment-page scripts, requiring authorization and integrity checks for every third-party script — controls that would have blocked or detected the skimmer.","SA-12 requires organizations to implement safeguards to protect against supply chain threats, including evaluating and monitoring third-party components, which would have included scrutiny of the CDN vendor's access controls and change processes.","This category covers failures to verify the integrity of software and data, including third-party scripts loaded without Subresource Integrity checks, which is precisely how the malicious JavaScript was silently delivered to end users.","CIS Control 2 requires maintaining an inventory of all authorized software, including third-party scripts; organizations without such an inventory had no baseline to detect the injection of malicious code via the vendor's CDN.","published","2026-11-19T22:21:53.79939+00:00","2026-11-19T22:21:53.782+00:00",{"id":7,"url":27,"slug":28,"title":29},"https:\u002F\u002Fblog.qualys.com\u002Fproduct-tech\u002F2026\u002F11\u002F19\u002Fthird-party-javascript-is-part-of-your-attack-surface-lessons-from-a-recent-supply-chain-attack","third-party-javascript-is-part-of-your-attack-surface-lessons-from-a-recent-supp-d6c0c6","Third-Party JavaScript Is Part of Your Attack Surface: Lessons from a Recent Supply-Chain Attack",[31,37],{"id":32,"name":33,"slug":34,"description":35,"color":36},"859cf0ad-a7e9-42bb-a75d-bac6511fa5d5","Configuration Management","configuration-management","Misconfigs, default credentials, exposed services","#eab308",{"id":38,"name":39,"slug":40,"description":41,"color":42},"f0c2a0af-58aa-4128-87c9-6acd30f2dc48","Supply Chain","supply-chain","Third-party risk, compromised dependencies","#8b5cf6",[],[45,49,53],{"slug":46,"name":47,"problem":48},"waf-ddos","Web application firewall and DDoS protection","Websites and APIs stay up, and common web attacks are filtered before they reach them.",{"slug":50,"name":51,"problem":52},"data-loss-prevention","Data loss prevention (DLP)","Sensitive data cannot quietly leave by email, upload, USB stick or AI tool.",{"slug":54,"name":55,"problem":56},"software-supply-chain","Software supply chain security","Malicious and vulnerable open-source packages are caught before they ship."]