4.3medium
Custom CSS, JS & PHP <= 2.0.7 - Cross-Site Request Forgery Bypass
- Severity
- 4.3medium CVSS:3.1 by Wordfence
- Exploit likelihood
- 0.48% (higher than 42% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| flippercode Custom css-js-php | up to 2.0.7 | CVE List |
| wpfactory custom_css,_js_&_php | up to 2.0.7 | NVD |
All scores
| Wordfence | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
El complemento Custom CSS, JS & PHP para WordPress es vulnerable a Cross-Site Request Forgery (CSRF) en versiones hasta la 2.0.7 incluida. Esto se debe a una validación nonce faltante o incorrecta en la función save(). Esto hace posible que atacantes no autenticados guarden fragmentos de código a través de una solicitud falsificada, siempre que puedan engañar al administrador del sitio para que realice una acción como hacer click en un enlace.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-4418 changed 2026-04-08 | CVE Terms of Use |
| NVD | CVE-2021-4418 changed 2026-06-17 | Public domain |