WordPress 7.1.2 fixes critical unauthenticated path traversal vulnerability (CVE-2026-87902)
WordPress released a fix for a critical flaw allowing unauthenticated attackers to load external files and potentially run code on servers.
Overview
WordPress released version 7.1.2 to fix a critical flaw that lets an unauthenticated attackerDone without logging in or holding a valid account on the target system make the software load a PHPA widely used server-side scripting language that builds dynamic web pages before sending them to browsers file of the attacker's choosing from outside the site's active theme folders. This issue affects every release from 4.7.0 through 7.1.1, meaning a wide range of sites are vulnerable. The bug sits in get_page_template(), the function WordPress uses to pick the theme file that renders a page, and it allows a request to walk out of the directory the code expected to stay in. Because the attacker needs no account on the site and no action from anyone who has one, the vulnerabilityA flaw in software or hardware that lets an attacker do something the maker did not intend is highly dangerous. The project tracks the flaw as CVEThe public tracking code assigned to a specific known security flaw in software or hardware-2026-87902 and rates it 9.2 out of 10 on version 4 of CVSSThe standard rating scale used to score how severe a software security flaw is, the common scale for vulnerability severity. Sites that accept automatic background updates will start the update on their own, and others can update from the Updates screen in the Dashboard.
Terms in this story
- unauthenticated attacker
- Done without logging in or holding a valid account on the target system. An unauthenticated flaw is especially urgent in the news because any stranger on the internet can trigger it without needing a username or password first.
- PHP
- A widely used server-side scripting language that builds dynamic web pages before sending them to browsers. Because millions of websites and content management systems run on PHP, a newly discovered vulnerability in the PHP engine can put a huge portion of the web at risk.
- vulnerability
- A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
- CVE
- The public tracking code assigned to a specific known security flaw in software or hardware. Every cataloged software flaw gets a unique CVE label so security teams, vendors, and news reports can talk about the exact same bug without confusion. Security+ objective 2.3 lists the term
- CVSS
- The standard rating scale used to score how severe a software security flaw is. Security advisories include a CVSS rating from low to critical based on how easy a bug is to exploit and how much damage it allows. Security+ objective 4.3 lists the term
- path traversal
- A flaw where an attacker uses folder navigation symbols in a file request to read restricted files. If a web server lets users download a picture by name without checking the folder path, an attacker can use path traversal to climb into system folders and read configuration files. Security+ objective 2.4 lists the term
- server
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- privileges
- The level of authority an account or process has to change settings, read files, or run commands. Ordinary user accounts run with limited privileges so a single mistake cannot break the operating system, whereas administrator privileges allow installing drivers and viewing all files.
- patch
- A software update released by a developer to fix a bug or close a security flaw. When a software flaw is discovered, the vendor ships a patch so administrators and ordinary users can update their systems before attackers exploit the bug. Security+ objective 4.3 lists the term
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Help Net Security website. Cite the article, not this page.
Read the full article on Help Net Security (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
"...fixes critical unauthenticated path traversal vulnerability..." Found by reading the article; these exact words are in it - Who is affected: "...sites where the server and the active theme meet certain conditions..."
Copied word for word from the article - Security+ 2.3 Explain various types of vulnerabilities.
"......fixes critical unauthenticated path traversal vulnerability (CVE-2026-87902)" Found in the headline - Security+ 4.3 Explain various activities associated with vulnerability management.
"......fixes critical unauthenticated path traversal vulnerability (CVE-2026-87902)" Found in the headline - CYBR 101 week 10: the web, cookies, phishing, incident response and logs
"WordPress 7.1.2 fixes critical unauthenticated path traversal vulnerability..." Found in the headline - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"......fixes critical unauthenticated path traversal vulnerability (CVE-2026-87902)" Found in the headline
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- U.S. CISA adds WordPress flaw to its Known Exploited Vulnerabilities catalog
- Hackers Actively Exploiting WordPress Vulnerability to Execute Malicious Code
- WordPress patches a critical severity security vulnerability
- Attackers Exploit WordPress CVE-2026-87902 Within Hours of Disclosure
- CVE-2026-87902 in WordPress Enables Conditional RCE
- Critical WordPress Flaw Lets Unauthenticated Attackers Execute Remote Code
- CVE-2026-87902: how close is your WordPress to remote code execution?
- Critical WordPress Core Vulnerability Lets Attackers Execute Code Without Logging In