CVE-2017-16570: Cross-Site Request Forgery (CSRF) in keystone
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
References
Related vulnerabilities
Recent vulnerabilities recorded for keystone.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.