{
    "title": "Yoast SEO vulnerabilities: security history since 2020",
    "seo_title": "Yoast SEO security flaws: XSS, patches and safe versions",
    "h1": "Yoast SEO vulnerabilities: security history since 2020",
    "description": "Every Yoast SEO and Yoast SEO Premium vulnerability published since 2020: affected versions, patches, CVSS scores and how to protect your site.",
    "lead": "Nine medium-severity vulnerabilities in free Yoast SEO since 2020, mostly XSS limited to editorial accounts, and a .htaccess vulnerability in Premium: the verified timeline and the right habits.",
    "language": "en",
    "locale": "en-US",
    "type": "article",
    "url": "https://www.wp-feint.com/yoast-seo-security-vulnerabilities/",
    "canonical": "https://www.wp-feint.com/yoast-seo-security-vulnerabilities/",
    "markdown": "https://www.wp-feint.com/yoast-seo-security-vulnerabilities/index.md",
    "json": "https://www.wp-feint.com/yoast-seo-security-vulnerabilities/index.json",
    "published": "2026-08-06T07:00:00+00:00",
    "modified": "2026-11-22T12:11:30+00:00",
    "site": {
        "name": "WP Feint",
        "url": "https://www.wp-feint.com/"
    },
    "translations": [
        {
            "language": "en",
            "hreflang": "en-US",
            "title": "Yoast SEO vulnerabilities: security history since 2020",
            "url": "https://www.wp-feint.com/yoast-seo-security-vulnerabilities/",
            "markdown": "https://www.wp-feint.com/yoast-seo-security-vulnerabilities/index.md",
            "json": "https://www.wp-feint.com/yoast-seo-security-vulnerabilities/index.json"
        },
        {
            "language": "fr",
            "hreflang": "fr-FR",
            "title": "Yoast SEO : historique des failles de sécurité depuis 2020",
            "url": "https://www.wp-feint.com/fr/failles-securite-yoast-seo/",
            "markdown": "https://www.wp-feint.com/fr/failles-securite-yoast-seo/index.md",
            "json": "https://www.wp-feint.com/fr/failles-securite-yoast-seo/index.json"
        },
        {
            "language": "es",
            "hreflang": "es-ES",
            "title": "Yoast SEO: historial de vulnerabilidades de seguridad desde 2020",
            "url": "https://www.wp-feint.com/es/vulnerabilidades-yoast-seo/",
            "markdown": "https://www.wp-feint.com/es/vulnerabilidades-yoast-seo/index.md",
            "json": "https://www.wp-feint.com/es/vulnerabilidades-yoast-seo/index.json"
        },
        {
            "language": "de",
            "hreflang": "de-DE",
            "title": "Yoast SEO: alle Sicherheitslücken und Patches seit 2020",
            "url": "https://www.wp-feint.com/de/yoast-seo-sicherheitsluecken/",
            "markdown": "https://www.wp-feint.com/de/yoast-seo-sicherheitsluecken/index.md",
            "json": "https://www.wp-feint.com/de/yoast-seo-sicherheitsluecken/index.json"
        },
        {
            "language": "it",
            "hreflang": "it-IT",
            "title": "Yoast SEO: la storia delle vulnerabilità di sicurezza dal 2020",
            "url": "https://www.wp-feint.com/it/vulnerabilita-sicurezza-yoast-seo/",
            "markdown": "https://www.wp-feint.com/it/vulnerabilita-sicurezza-yoast-seo/index.md",
            "json": "https://www.wp-feint.com/it/vulnerabilita-sicurezza-yoast-seo/index.json"
        },
        {
            "language": "pt",
            "hreflang": "pt-BR",
            "title": "Yoast SEO: histórico das vulnerabilidades de segurança desde 2020",
            "url": "https://www.wp-feint.com/pt/vulnerabilidades-seguranca-yoast-seo/",
            "markdown": "https://www.wp-feint.com/pt/vulnerabilidades-seguranca-yoast-seo/index.md",
            "json": "https://www.wp-feint.com/pt/vulnerabilidades-seguranca-yoast-seo/index.json"
        },
        {
            "language": "nl",
            "hreflang": "nl-NL",
            "title": "Yoast SEO: geschiedenis van de kwetsbaarheden sinds 2020",
            "url": "https://www.wp-feint.com/nl/yoast-seo-kwetsbaarheden-beveiliging/",
            "markdown": "https://www.wp-feint.com/nl/yoast-seo-kwetsbaarheden-beveiliging/index.md",
            "json": "https://www.wp-feint.com/nl/yoast-seo-kwetsbaarheden-beveiliging/index.json"
        }
    ],
    "headings": [
        {
            "level": 1,
            "text": "Yoast SEO vulnerabilities: security history since 2020"
        },
        {
            "level": 2,
            "text": "Yoast SEO in brief"
        },
        {
            "level": 2,
            "text": "Timeline of vulnerabilities since 2020"
        },
        {
            "level": 2,
            "text": "The notable vulnerabilities explained"
        },
        {
            "level": 3,
            "text": "2021: the server path exposed by the REST API"
        },
        {
            "level": 3,
            "text": "Stored XSS by contributors, a recurring family"
        },
        {
            "level": 3,
            "text": "May 2024: an unauthenticated reflected XSS"
        },
        {
            "level": 3,
            "text": "May 2026: private metadata readable by a contributor"
        },
        {
            "level": 3,
            "text": "Premium: from the redirect manager to the .htaccess file"
        },
        {
            "level": 2,
            "text": "What this history shows"
        },
        {
            "level": 2,
            "text": "Protecting your site"
        },
        {
            "level": 3,
            "text": "Key takeaways"
        },
        {
            "level": 2,
            "text": "Sources"
        }
    ],
    "body": "Yoast SEO runs on more than 10 million sites, so every vulnerability published in its code affects a huge share of the WordPress web. Since 2020, its history includes no critical vulnerability in the free version, but a steady series of medium-severity vulnerabilities, mostly scripts injected by editorial accounts. Here is the verified list, version by version, what it reveals and how to stay up to date without thinking about it.\n\n## Yoast SEO in brief\n\nYoast SEO is WordPress's long-standing SEO plugin: titles and meta descriptions, XML sitemaps, [structured data](https://www.wp-feint.com/glossary/structured-data/) (schema), breadcrumbs, readability analysis. It has been published on wordpress.org since October 2010 by Yoast BV, a Dutch company acquired by Newfold Digital (parent company of Bluehost) in August 2021. The free version shows more than 10 million active installations (wordpress.org), the highest figure the directory displays. A paid version, Yoast SEO Premium, is installed on top of it and adds, among other things, a redirect manager.\n\nThree characteristics make it a natural target. Its install base is huge, so an exploitable vulnerability pays off well for an attacker. It runs in the editor, on the front end and in the REST API, which multiplies entry points. Finally, it processes data entered by all of the site's writers (SEO titles, FAQ and \"How-to\" blocks, slugs, author names), which is exactly the territory of stored [XSS](https://www.wp-feint.com/glossary/xss/) vulnerabilities.\n\n## Timeline of vulnerabilities since 2020\n\nWe cross-checked every entry in the Wordfence, Patchstack and WPScan databases against the [CVE](https://www.wp-feint.com/glossary/cve/) records and the Yoast changelog. The date shown is the first publication of the advisory; it often comes several days, or even several months, after the fix was released. Vulnerabilities specific to Yoast SEO Premium are flagged as such.\n\n![Timeline of Yoast SEO vulnerabilities from 2021 to July 2026: server path exposed on October 5, 2021 (17.3), XSS in the editor on March 2, 2023 (20.2.1), Premium Zapier key on May 9, 2023 (20.5), SEO Manager XSS on November 24, 2023 (21.1), reflected XSS on May 6, 2024 (22.6), XSS via the author name on May 14, 2024 (22.7), Premium XSS on October 2, 2025 (26.0), Premium access control on January 15, 2026 (26.7), XSS via blocks on February 5 and March 21, 2026 (26.9 and 27.2), Premium .htaccess injection and metadata reading on May 26, 2026 (27.6.1 and 26.6), XSS via the slug on July 24, 2026 (28.1)](https://www.wp-feint.com/media/2026/10/chronologie-failles-yoast-seo-en.webp)\n\n| Published | Fixed in | Type | CVSS | CVE | Account required | Exploitation |\n| --- | --- | --- | --- | --- | --- | --- |\n| October 5, 2021 | 17.3 (affected: 16.7 to 17.2) | Full server path disclosure via the REST API | 5.3 (Patchstack) | CVE-2021-25118 | None | Not documented |\n| March 2, 2023 | 20.2.1 | XSS (DOM) in a post's SEO settings | 6.4 (Wordfence) | None | Contributor | Not documented |\n| May 9, 2023 | 20.5 (affected: Premium up to 20.4) | Premium: Zapier API key reset | 5.3 (Patchstack) | CVE-2023-28775 | None | Not documented |\n| November 24, 2023 | 21.1 | Stored XSS | 5.9 (Patchstack) | CVE-2023-40680 | SEO Manager | Not documented |\n| May 6, 2024 | 22.6 | Reflected XSS via admin bar URLs | 6.1 (Wordfence) | CVE-2024-4041 | None (a victim must click) | Not documented |\n| May 14, 2024 | 22.7 | Stored XSS via the author name | 6.4 (Wordfence) | CVE-2024-4984 | Contributor | Not documented |\n| October 2, 2025 | 26.0 (affected: Premium 25.7 to 25.9) | Premium: stored XSS (faulty regular expression) | 6.4 (Wordfence) | CVE-2025-11241 | Contributor | Not documented |\n| January 15, 2026 | 26.7 (affected: Premium up to 26.6) | Premium: broken access control | 5.5 (Patchstack) | CVE-2026-40722 | Author | Not documented |\n| February 5, 2026 | 26.9 | Stored XSS via the yoast-schema block attribute | 6.4 (Wordfence) | CVE-2026-1293 | Contributor | Not documented |\n| March 21, 2026 | 27.2 | Stored XSS via the jsonText block attribute | 6.4 (Wordfence) | CVE-2026-3427 | Contributor | Not documented |\n| May 26, 2026 | 27.6.1 (affected: Premium before 27.6.1) | Premium: directive injection into .htaccess by the redirect manager | Not published by Yoast | Not stated in the advisory | User who can write posts | No trace according to Yoast |\n| May 26, 2026 | 26.6 | Reading SEO metadata of private content (IDOR) | 4.3 (Wordfence) | CVE-2025-14481 | Contributor | Not documented |\n| July 24, 2026 | 28.1 | Stored XSS via the slug | 6.4 (Wordfence) | CVE-2026-15425 | Author | Not documented |\n\n*Yoast SEO and Yoast SEO Premium vulnerabilities published from January 1, 2020 to August 3, 2026. \"Not documented\": no attack described in the sources consulted.*\n\nA note on reading the table: the 2021 vulnerability is dated October 5, 2021 at WPScan and Wordfence, but only appears at Patchstack in February 2022, and its CVE record was not published until February 28, 2022.\n\n## The notable vulnerabilities explained\n\n### 2021: the server path exposed by the REST API\n\nFrom version 16.7 to 17.2, Yoast SEO added the full internal path of the featured image (for example the hosting folder on disk) to the responses of the `wp/v2/posts` REST API routes. It is the only vulnerability of the period exploitable without an account in the free version. It grants no access by itself, but provides information useful for preparing another attack, hence its moderate score. Researcher Fariq Fadillah Gusti Insani reported it; version 17.3 of October 5, 2021 fixed it. Our article on [WordPress REST API security](https://www.wp-feint.com/wordpress-rest-api-security/) details this kind of exposure.\n\n### Stored XSS by contributors, a recurring family\n\nSeven of the nine vulnerabilities in the free version are cross-site scripting (XSS), six of them stored. For the stored ones, the pattern is almost always the same: a user with an editorial role (contributor, author, or SEO Manager for the 21.0 vulnerability, reported by Rafie Muhammad of Patchstack) puts JavaScript code into a piece of data that Yoast displays again without escaping it properly, and that code runs in the browser of anyone who opens the page, including an administrator. The injection points vary:\n\n- a post's SEO settings in the editor (version 20.2, reported by Leonidas Milosis of Wordfence, fixed on the day the advisory was published);\n- the author's display name, reused in the enhanced data meant for Slack previews (22.6, fixed in 22.7 on May 14, 2024, two weeks after discovery);\n- block attributes: `yoast-schema` (26.8, reported by suyoung kim), then `jsonText` of the \"How-to\" block (27.1.1);\n- a post's slug, displayed again in bulk editing (28.0, reported by Dmitrii Ignatyev, exploitable only with \"pretty\" permalinks).\n\nThese vulnerabilities require an account, so they are not used in mass attacks on random sites. They matter on multi-author sites, blogs that accept outside contributions, or sites where an editorial account has been stolen: the script can act with the privileges of the administrator viewing the page. Our guide to XSS vulnerabilities in WordPress explains the mechanism in detail.\n\n### May 2024: an unauthenticated reflected XSS\n\nUp to version 22.5, some URLs displayed in the Yoast menu of the admin bar were not escaped. An attacker without an account could craft a link that, when opened by a logged-in user, ran a script in their session. The victim had to click, which limits the score to 6.1. Reported by Bassem Essam, the vulnerability was fixed in 22.6 on April 30, 2024, a week before Wordfence published the advisory on May 6.\n\n### May 2026: private metadata readable by a contributor\n\nThe metadata search REST route did not check that the user was allowed to read the requested content. A contributor could therefore read, through the `post_id` parameter, the SEO metadata of any content, including other users' drafts and private content. The fix shipped in version 26.6 on December 15, 2025; the public advisory was not published until May 26, 2026. This gap is typical: a regularly updated site was protected five months before the vulnerability became known.\n\n### Premium: from the redirect manager to the .htaccess file\n\nThe most serious vulnerability of the period only affects Yoast SEO Premium (and the products that include it, such as Yoast WooCommerce SEO). On May 26, 2026, Yoast released version 27.6.1 and an advisory: an authenticated user with the `edit_posts` capability could, using special characters in a redirect, inject unexpected directives into the site's `.htaccess` file. According to Yoast, the impact ranges from taking the site down to remote code execution. Three conditions had to be met: an Apache server, the `.htaccess`-based redirect mode enabled manually (the default PHP mode is not affected) and such an account. Yoast says it found no trace of exploitation on a sample of affected sites. The fix sanitizes redirects, removes an unused endpoint and adds a warning in case of unusual activity.\n\nThe other Premium vulnerabilities are more modest: in 2023, the Zapier API key could be reset without an account (reported by Rafie Muhammad of Patchstack, fixed in 20.5); in 2025, a regular expression meant to strip an attribute from content allowed JavaScript event handlers to be injected (versions 25.7 to 25.9, fixed in 26.0, reported by Matthew Rollings); in January 2026, an access control flaw was fixed in 26.7.\n\n![Bar chart of free Yoast SEO vulnerabilities per year according to Patchstack: 0 in 2020 and 2021, 1 in 2022, 2 in 2023, 2 in 2024, 0 in 2025 and 4 in 2026 up to August 3, all of medium severity](https://www.wp-feint.com/media/2026/10/failles-par-annee-yoast-seo-en-1.webp)\n\n## What this history shows\n\n- **No critical vulnerability in the free version since 2020.** All rated vulnerabilities range from 4.3 to 6.4 out of 10. None allows an unauthenticated site takeover. This is a clear contrast with other SEO plugins: All in One SEO had a critical privilege escalation in late 2021 (see our [All in One SEO vulnerability timeline](https://www.wp-feint.com/all-in-one-seo-security-vulnerabilities/)); Rank Math is covered in [a dedicated article](https://www.wp-feint.com/rank-math-security-vulnerabilities/).\n- **Stored XSS dominates.** Six vulnerabilities out of nine, often tied to the blocks and structured data added over the versions. Every new feature that displays user input again is a new injection point.\n- **Account roles matter.** Most vulnerabilities require a contributor or an author. Granting the minimum privileges (see roles and least privilege) directly reduces the risk.\n- **The fix often comes before the advisory.** 21.1 came out in September 2023, the advisory in November; 26.6 in December 2025, the advisory in May 2026. A site that updates quickly is protected before the vulnerability is even public.\n- **Premium has its own history.** Its features (redirects, integrations) add an attack surface the free version does not have, and its updates go through the MyYoast account, not wordpress.org.\n\nThis assessment matches the one we draw for WordPress core in the [timeline of security releases](https://www.wp-feint.com/wordpress-core-vulnerabilities-timeline/) and, more broadly, in [plugin vulnerabilities by the numbers](https://www.wp-feint.com/wordpress-plugin-vulnerabilities-statistics/): most of the risk comes from plugins, and update speed makes the difference.\n\n## Protecting your site\n\n- **Update Yoast SEO without waiting.** Check your version in Plugins; as of this writing, all listed vulnerabilities are fixed in 28.1 (and in 27.6.1 for Premium).\n- **Turn on automatic updates** for Yoast SEO: the plugin ships a release roughly every two weeks, and fixes often arrive before the public advisory. Our guide to automatic plugin updates explains how to go about it without breaking the site.\n- **Premium: check the redirect mode.** In the redirect settings, the default PHP mode was not affected by the May 2026 vulnerability. If you use the `.htaccess` mode, update and check the file's contents.\n- **Limit editorial accounts** and delete the ones no longer used: most vulnerabilities require a contributor or an author.\n- **Remove duplicate or unused SEO plugins**: two active SEO plugins means two vulnerability histories. See [abandoned plugins](https://www.wp-feint.com/abandoned-closed-wordpress-plugins/).\n- **Add a web application firewall** with virtual patching to cover the gap between the advisory and your update (WAF comparison), and monitor your plugins' vulnerabilities.\n\nWP Feint Pro can warn you. Every day, it compares your plugin versions with the public WPVulnerability.net database and sends you an [email alert](https://www.wp-feint.com/features/vulnerable-plugin-alerts/) stating the severity and the fixed version ([alert settings](https://www.wp-feint.com/features/email-alerts/)). The member area lists pending updates and vulnerable sites ([site monitoring](https://www.wp-feint.com/features/#surveillance)). It alerts, it does not fix: WP Feint does not apply updates for you and it is not a firewall. To compare tools, see our selection of the [best security plugins](https://www.wp-feint.com/best-wordpress-security-plugins/).\n\n### Key takeaways\n\n- Free Yoast SEO: nine vulnerabilities published from January 1, 2020 to August 3, 2026 (Patchstack), all of medium severity, no documented attack.\n- Six are stored XSS, which require an account (contributor, author or SEO Manager).\n- Yoast SEO Premium: the May 2026 .htaccess vulnerability could lead to code execution, but only with the .htaccess redirect mode on Apache; fixed in 27.6.1.\n- The fix often ships before the public advisory: automatic updates protect you ahead of everyone else.\n\n## Sources\n\n- WordPress.org: Yoast SEO, description and active installations (https://wordpress.org/plugins/wordpress-seo/)\n- CVE.org: CVE-2021-25118, Yoast SEO 16.7-17.2 Unauthenticated Full Path Disclosure (February 28, 2022) (https://www.cve.org/CVERecord?id=CVE-2021-25118)\n- CVE.org: CVE-2023-40680, Yoast SEO ≤ 21.0 Cross Site Scripting (November 30, 2023) (https://www.cve.org/CVERecord?id=CVE-2023-40680)\n- Yoast Developer: Yoast SEO 26.6 changelog (December 15, 2025) (https://developer.yoast.com/changelog/yoast-seo/26.6/)\n\nOther sources consulted: further CVE records, official vendor pages, security research publications, Wordfence, WPScan and Patchstack databases.",
    "categories": [
        "Vulnerable plugins"
    ],
    "format": "application/json"
}