CVE-2017-16570: Cross-Site Request Forgery (CSRF) in keystone

keystone Updated 02 Oct 2025

Summary

30/11/2017
Yes i
High
8.8

CVE-2017-16570: Cross-Site Request Forgery (CSRF) in keystone. Affects keystone versions < 4.0.0-beta.7. Fixed in 4.0.0-beta.7. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Keystone is an npm package used for authentication and access control in Node.js applications. It provides a set of APIs and middleware for managing user sessions, permissions, and authentication. However, versions prior to 4.0.0 are vulnerable to Cross-Site Request Forgery (CSRF) attacks. This vulnerability arises from the package's failure to validate the presence of the X-CSRF-Token header, allowing attackers to perform actions on behalf of other users on all endpoints.

Vulnerability Detail

The Cross-Site Request Forgery (CSRF) vulnerability in keystone allows malicious actors to trick authenticated users into performing unintended actions without their consent. By exploiting this vulnerability, attackers can forge requests that appear legitimate and execute actions on behalf of the victim user. This can lead to unauthorized access, data manipulation, or other malicious activities. The vulnerability is rated as HIGH severity with a CVSS score of 8.8.

How To Fix

Minimum fixed version

4.0.0-beta.7

This is the first release that contains the fix.

npm install keystone@4.0.0-beta.7

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The Cross-Site Request Forgery (CSRF) vulnerability in keystone can have serious security implications for applications using vulnerable versions of the package. It is crucial to update to version 4.0.0 or later to mitigate the risk of CSRF attacks. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for keystone →

Share this vulnerability

FAQ

Cross-Site Request Forgery (CSRF) is an attack that tricks the victim into submitting a malicious request. It occurs when an attacker can force a user to perform unwanted actions on a web application in which they are authenticated.

The CSRF vulnerability in keystone allows attackers to perform actions on behalf of other users without their consent. This can lead to unauthorized access, data manipulation, or other malicious activities depending on the permissions of the targeted user.

No, there is no specific workaround available for this vulnerability. It is recommended to update the keystone package to the latest version to fix the CSRF vulnerability.

This vulnerability is rated as HIGH severity with a CVSS score of 8.8.

You can find more information about the keystone package on the npm website or the official GitHub repository of the package.

Related vulnerabilities

Recent vulnerabilities recorded for keystone.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

4.0.0-beta.7

This is the first release that contains the fix.

npm install keystone@4.0.0-beta.7

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.