Custom CSS, JS & PHP <= 2.0.7 - Cross-Site Request Forgery Bypass
Summary
| CVE | CVE-2021-4418 |
|---|---|
| State | PUBLISHED |
| Assigner | Wordfence |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-10-20 08:15:11 UTC |
| Updated | 2026-04-08 19:17:46 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 4.3 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
EPSS: 0.001370000 probability, percentile 0.334960000 (date 2026-04-09)
Problem Types: CWE-352 | CWE-352 CWE-352 Cross-Site Request Forgery (CSRF)
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 4.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| 3.1 | [email protected] | Secondary | 4.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| 3.1 | CNA | DECLARED | 4.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
NoneIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Wpfactory | Custom Css Js Php | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Flippercode | Custom Css-js-php | affected 2.0.7 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Multiple WordPress plugins fixed CSRF vulnerabilities (part 2). – NinTechNet | af854a3a-2127-422b-91ae-364da2661108 | blog.nintechnet.com | Exploit, Third Party Advisory |
| Custom CSS, JS & PHP <= 2.0.7 - Cross-Site Request Forgery Bypass | af854a3a-2127-422b-91ae-364da2661108 | www.wordfence.com | Third Party Advisory |
| Multiple WordPress plugins fixed CSRF vulnerabilities (part 1). – NinTechNet | af854a3a-2127-422b-91ae-364da2661108 | blog.nintechnet.com | Not Applicable |
| Multiple WordPress plugins fixed CSRF vulnerabilities (part 4). – NinTechNet | af854a3a-2127-422b-91ae-364da2661108 | blog.nintechnet.com | Not Applicable |
| Multiple WordPress plugins fixed CSRF vulnerabilities (part 3). – NinTechNet | af854a3a-2127-422b-91ae-364da2661108 | blog.nintechnet.com | Not Applicable |
| Multiple WordPress plugins fixed CSRF vulnerabilities (part 5). – NinTechNet | af854a3a-2127-422b-91ae-364da2661108 | blog.nintechnet.com | Not Applicable |
| 25 WordPress plugins vulnerable to CSRF attacks. – NinTechNet | af854a3a-2127-422b-91ae-364da2661108 | blog.nintechnet.com | Not Applicable |
| 403 Forbidden | af854a3a-2127-422b-91ae-364da2661108 | plugins.trac.wordpress.org | Patch |
| More WordPress plugins and themes vulnerable to CSRF attacks. – NinTechNet | af854a3a-2127-422b-91ae-364da2661108 | blog.nintechnet.com | Not Applicable |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Jerome Bruandet (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2021-06-08T00:00:00.000Z | Disclosed |
There are currently no legacy QID mappings associated with this CVE.