Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
decaporg Decap CMS
Default version status: unaffected
0 to < 3.19.0affected
pkg:npm/decap-cmsdecaporg decap-cms-app
Default version status: unaffected
0 to < 3.19.0affected
pkg:npm/decap-cms-appdecaporg decap-cms-lib-auth
Default version status: unaffected
0 to < 3.5.0affected
pkg:npm/decap-cms-lib-authReferences
- https://github.com/decaporg/decap-cms/security/advisories/GHSA-h6vp-4qr8-gvh5 ↗
- https://github.com/decaporg/decap-cms/commit/c4269e23a5189d9bca7a5fba31815bc297acab16 ↗
- https://github.com/decaporg/decap-cms/releases/tag/decap-cms%403.19.0 ↗
- https://github.com/decaporg/decap-cms/blob/decap-cms%403.18.0/packages/decap-cms-lib-auth/src/utils.js#L7-L12 ↗
- https://github.com/decaporg/decap-cms/blob/decap-cms%403.18.0/packages/decap-cms-lib-auth/src/implicit-oauth.js#L45-L69 ↗
- https://www.vulncheck.com/advisories/decap-cms-before-3.19.0-login-csrf-via-oauth-null-state-nonce ↗