AploSec / Disclosures / CVE-2026-145159
Decap CMS before 3.19.0 Login CSRF via OAuth Null State Nonce
CVE-2026-145159 · published 2026-12-04
In plain words: this type of bug lets another website perform actions as a logged-in user (cross-site request forgery, CSRF). A fixed release is listed.
Summary
CVE-2026-145159 affects Decap CMS (npm) < 3.19.0 (decap-cms-lib-auth < 3.5.0): Login CSRF via OAuth Null State Nonce (CWE-352). Fixed in 3.19.0 (decap-cms-lib-auth 3.5.0). CVSS 4.0 base score 5.3 (Medium), assigned by VulnCheck. Published 2026-12-04 by VulnCheck. Credit: Zachariah Mithani (AploSec).
Decap CMS before 3.19.0 contains a login cross-site request forgery vulnerability in validateNonce() that allows remote unauthenticated attackers to bypass the OAuth state check using a null nonce. Attackers can lure editors to an admin link with an attacker access token and null state nonce, causing saved content to be written using the attacker's Git provider identity.
Evidence
Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.
Remediation
Upgrade Decap CMS to 3.19.0 (decap-cms-lib-auth 3.5.0) or later. Releases in the affected range (< 3.19.0 (decap-cms-lib-auth < 3.5.0)) are vulnerable. See the linked advisory for details on affected release lines.
Timeline
- 2026-12-04 CVE published
References
- Referencehttps://github.com/decaporg/decap-cms/security/advisories/GHSA-h6vp-4qr8-gvh5
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/decap-cms-before-3.19.0-login-csrf-via-oauth-null-state-nonce
- Fix commithttps://github.com/decaporg/decap-cms/commit/c4269e23a5189d9bca7a5fba31815bc297acab16
- Releasehttps://github.com/decaporg/decap-cms/releases/tag/decap-cms%403.19.0
- Vulnerable codehttps://github.com/decaporg/decap-cms/blob/decap-cms%403.18.0/packages/decap-cms-lib-auth/src/utils.js#L7-L12
- Vulnerable codehttps://github.com/decaporg/decap-cms/blob/decap-cms%403.18.0/packages/decap-cms-lib-auth/src/implicit-oauth.js#L45-L69
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-145159
- NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-145159
- Severity
- Medium 5.3CVSS 4.0, scored by VulnCheck in the CVE record
- Package
- Decap CMS
- Ecosystem
- npm
- Affected
- < 3.19.0 (decap-cms-lib-auth < 3.5.0)
- Fixed
- 3.19.0 (decap-cms-lib-auth 3.5.0)
- Weakness
- CWE-352
- CNA
- VulnCheck
- Credit
- Zachariah Mithani (AploSec)finder