# CVE-2021-4418: Custom CSS, JS & PHP <= 2.0.7 - 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.48%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-10-20T07:29:33.072Z
- Modified: 2026-06-17T04:19:43.030Z
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Wordfence

## Description

The Custom CSS, JS & PHP plugin for WordPress is vulnerable to Cross-Site Request Forgery in versions up to, and including, 2.0.7. This is due to missing or incorrect nonce validation on the save() function. This makes it possible for unauthenticated attackers to save code snippets 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

- flippercode Custom css-js-php: up to 2.0.7
- wpfactory custom_css,_js_&_php: up to 2.0.7

## Every score

- Wordfence: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`

## References

- <https://blog.nintechnet.com/multiple-wordpress-plugins-fixed-csrf-vulnerabilities-part-2/> (exploit, third-party-advisory)
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/d21dc02f-789c-497e-9d01-02fa49bf9e30?source=cve> (third-party-advisory)
- <https://blog.nintechnet.com/25-wordpress-plugins-vulnerable-to-csrf-attacks/> (not-applicable)
- <https://blog.nintechnet.com/more-wordpress-plugins-and-themes-vulnerable-to-csrf-attacks/> (not-applicable)
- <https://blog.nintechnet.com/multiple-wordpress-plugins-fixed-csrf-vulnerabilities-part-3/> (not-applicable)
- <https://blog.nintechnet.com/multiple-wordpress-plugins-fixed-csrf-vulnerabilities-part-1/> (not-applicable)
- <https://blog.nintechnet.com/multiple-wordpress-plugins-fixed-csrf-vulnerabilities-part-5/> (not-applicable)
- <https://blog.nintechnet.com/multiple-wordpress-plugins-fixed-csrf-vulnerabilities-part-4/> (not-applicable)
- <https://plugins.trac.wordpress.org/browser/custom-css-js-php/trunk/modules/code/model.code.php#L85> (patch)

## Sources

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

---

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