PHP, the open-source programming language that powers roughly 70% of the web—including Wikipedia and countless WordPress sites—has been in the spotlight this week. Researchers armed with artificial intelligence tools uncovered serious vulnerabilities in the code, flaws that could have let hackers hijack servers, steal sensitive data, and potentially cause widespread damage. The good news: defenders got there first.
What happened
Human researchers had known about these bugs in PHP's code since 2024, but they couldn't resolve them, and hackers hadn't managed to turn them into practical attacks. That changed when researchers applied AI to the problem. The AI was able to map the core vulnerabilities within weeks and generate scalable exploits within hours. In other words, AI turned a dormant danger into a real, immediate threat—but it was the good guys who wielded the tool.
The discovery has put governments and businesses worldwide on alert. Some websites have been taken offline for patching, a short-term inconvenience and cost that may prevent far worse. The episode is a stark reminder that in the digital age, a single vulnerability in a widely used piece of software can ripple across the entire internet.
Why PHP matters
PHP is a server-side scripting language, meaning it runs on web servers to generate dynamic web pages. It's been around since the mid-1990s and has become the backbone of much of the web. WordPress, which powers a large chunk of websites, is built on PHP. So are many custom web applications. When a vulnerability is found in PHP, it's not just one company that's at risk—it's a huge swath of the internet.
The flaws discovered this week are particularly serious because they could allow remote code execution, a scenario where an attacker can run their own code on a victim's server. That's the kind of access that lets hackers steal data, install malware, or take control of the machine entirely. The fact that defenders patched before attackers could exploit the flaws is a significant win, but it also highlights how quickly the threat landscape is evolving.
AI: both problem and solution
This week's news is a perfect illustration of AI's double-edged role in cybersecurity. On one hand, AI can be used by malicious actors to find and exploit vulnerabilities faster than ever before. On the other hand, it can be a powerful tool for defenders, helping them identify and fix flaws before they become attacks.
OpenAI was among the AI leaders sounding the alarm, urging governments and companies to use AI to strengthen their defenses before bad actors use it to knock them down. The message is clear: the race between offense and defense is accelerating, and AI is the fuel on both sides.
This isn't the first time AI has been linked to security concerns. Earlier this year, Meta delayed its Hatch AI agent after internal tests found security flaws, showing that even AI developers themselves aren't immune to the risks. And Anthropic won partial approval to relaunch its Mythos 5 AI model specifically for cyber defenders, underscoring the growing role of AI in security.
What it means for investors
For everyday investors, this episode is a reminder that cybersecurity is more important—and more complex—than ever. Some investors have worried that AI could undermine demand for software, including cyber protection. The logic was that AI might make threat detection cheaper and easier, reducing the need for expensive security tools.
But that view may be too simplistic. AI also creates more software, more automated activity, and a whole lot more for companies and governments to protect. That could actually increase demand for cybersecurity firms. Indeed, one analyst's cybersecurity basket in the Finimize portfolio is up 96% since March 2025, a sign that the sector is thriving.
This week's PHP scare is evidence that the threat is real and growing. As AI makes both attacks and defenses more sophisticated, companies will need to invest more in protecting their digital assets. That's a tailwind for cybersecurity companies, but it also means that no one is safe from the next big vulnerability.
What to watch next
Investors should keep an eye on how quickly patches are rolled out and whether any exploits emerge before they're fully deployed. They should also watch for any regulatory responses, as governments may push for stricter security standards. And they should monitor how AI continues to reshape the cybersecurity landscape—both as a threat and as a defense.
For now, the immediate crisis appears to be averted. But the underlying lesson is clear: in the age of AI, the race between attackers and defenders is only getting faster. And for investors, that means cybersecurity is likely to remain a hot sector for the foreseeable future.


