CVE-2022-0087: Reflected cross-site scripting (XSS) vulnerability in @keystone-6/auth

@keystone-6/auth Updated 02 Oct 2025

Summary

12/01/2022
Yes i
High
7.1

CVE-2022-0087: Reflected cross-site scripting (XSS) vulnerability. Affects @keystone-6/auth versions < 1.0.2. Fixed in 1.0.2. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The @keystone-6/auth package is a component of the Keystone 6 framework, which provides authentication capabilities for web applications. It is commonly used for managing user authentication and authorization in the administration user interface. However, this package is vulnerable to a reflected cross-site scripting (XSS) attack.

Vulnerability Detail

The vulnerability allows an attacker to exploit a reflected cross-site scripting vulnerability when using the @keystone-6/auth package. This can occur when a user follows an untrusted link to the signin or init page in the administration user interface. The impact of this vulnerability can be significant, as it can be used in targeted attacks such as phishing or in conjunction with other vulnerabilities. The vulnerability has been assigned a CVSS score of 7.1, indicating a high severity level.

How To Fix

Minimum fixed version

1.0.2

This is the first release that contains the fix.

npm install @keystone-6/auth@1.0.2

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

Workaround

If you cannot upgrade the dependencies, you can consider implementing one of the following workarounds:

  • Disable the administration user interface.
  • If using a reverse-proxy, strip query parameters when accessing the administration interface.

Conclusion

The @keystone-6/auth package is vulnerable to a reflected cross-site scripting (XSS) attack. To mitigate this vulnerability, it is recommended to upgrade to the latest version or apply the provided workarounds. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for @keystone-6/auth →

Share this vulnerability

FAQ

The vulnerability can be exploited by an attacker to execute arbitrary JavaScript code in the context of the user's browser, potentially leading to unauthorized actions or data theft.

To fix this vulnerability, upgrade to @keystone-6/auth version 1.0.2 or higher. If you are using @keystone-next/auth, upgrade to @keystone-6. Alternatively, disable the administration user interface or strip query parameters when accessing it through a reverse-proxy.

Yes, if you cannot upgrade the dependencies, you can disable the administration user interface or strip query parameters when accessing it through a reverse-proxy.

Yes, the vulnerability can be used in targeted attacks, including phishing, where an attacker tricks a user into following a malicious link that exploits the vulnerability.

Yes, the vulnerability has been assigned a CVSS score of 7.1, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for @keystone-6/auth.

How To Fix

Minimum fixed version

1.0.2

This is the first release that contains the fix.

npm install @keystone-6/auth@1.0.2

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