# CVE-2021-4416: wp-mpdf <= 3.5.1 - Cross-Site Request Forgery Bypass

- Severity: Medium 4.3 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2023-07-12T03:40:45.370Z
- Modified: 2026-06-17T04:19:42.780Z
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Wordfence

## Description

The wp-mpdf plugin for WordPress is vulnerable to Cross-Site Request Forgery in versions up to, and including, 3.5.1. This is due to missing or incorrect nonce validation on the mpdf_admin_savepost() function. This makes it possible for unauthenticated attackers to save post data via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.

(As written by CVE List.)

## Affected

- fkrauthan wp-mpdf: up to 3.5.1
- wp-mpdf_project wp-mpdf: up to 3.5.1

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/c47386ee-25c8-4a77-92e8-5a82afc9c826?source=cve> (third-party-advisory)
- <https://blog.nintechnet.com/25-wordpress-plugins-vulnerable-to-csrf-attacks/> (third-party-advisory)
- <https://blog.nintechnet.com/more-wordpress-plugins-and-themes-vulnerable-to-csrf-attacks/> (third-party-advisory)
- <https://blog.nintechnet.com/multiple-wordpress-plugins-fixed-csrf-vulnerabilities-part-3/> (third-party-advisory)
- <https://blog.nintechnet.com/multiple-wordpress-plugins-fixed-csrf-vulnerabilities-part-2/> (third-party-advisory)
- <https://blog.nintechnet.com/multiple-wordpress-plugins-fixed-csrf-vulnerabilities-part-1/> (third-party-advisory)
- <https://blog.nintechnet.com/multiple-wordpress-plugins-fixed-csrf-vulnerabilities-part-5/> (third-party-advisory)
- <https://blog.nintechnet.com/multiple-wordpress-plugins-fixed-csrf-vulnerabilities-part-4/> (third-party-advisory)
- <https://plugins.trac.wordpress.org/changeset/2549363/wp-mpdf/trunk/wp-mpdf.php> (patch)

## Sources

- CVE List: [CVE-2021-4416](https://www.cve.org/CVERecord?id=CVE-2021-4416), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2021-4416](https://nvd.nist.gov/vuln/detail/CVE-2021-4416), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4416 · Whole record: https://cve.day/CVE-2021-4416.json · Rebuilt by cve.day 2026-11-25T22:24:37.203Z
