CVE-2020-8176: Cross-site scripting in @shopify/koa-shopify-auth
Summary
CVE-2020-8176: Cross-site scripting in @shopify/koa-shopify-auth. Affects @shopify/koa-shopify-auth versions >= 3.1.61, < 3.1.63. Fixed in 3.1.63. 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
The @shopify/koa-shopify-auth package is an npm package that provides authentication middleware for Shopify apps built with Koa.js. It allows developers to easily add authentication functionality to their Shopify apps. This package is widely used in the Shopify app development community.
Vulnerability Detail
A cross-site scripting (XSS) vulnerability has been discovered in versions 3.1.61 to 3.1.62 of the @shopify/koa-shopify-auth package. This vulnerability allows an attacker to inject malicious JavaScript payloads into the 'shop' parameter on the '/shopify/auth/enable_cookies' endpoint. If exploited, this vulnerability could lead to unauthorized access, data theft, or other malicious activities.
How To Fix
Latest published version: 5.0.3 as of 22 Oct 2026
npm install @shopify/koa-shopify-auth@5.0.3
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
3.1.63
This is the first release that contains the fix.
npm install @shopify/koa-shopify-auth@3.1.63
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is crucial to upgrade to the fixed version of the package to ensure the security of the application.
Conclusion
The @shopify/koa-shopify-auth package is vulnerable to a cross-site scripting (XSS) vulnerability in versions 3.1.61 to 3.1.62. To mitigate this vulnerability, it is crucial to upgrade to version 3.1.63 or later. There are no known workarounds for this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for @shopify/koa-shopify-auth →
FAQ
If exploited, this vulnerability allows an attacker to inject malicious JavaScript code into the 'shop' parameter, potentially leading to unauthorized access, data theft, or other malicious activities.
You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it for any known vulnerabilities.
Yes, a fix is available in version 3.1.63 of the @shopify/koa-shopify-auth package. It is recommended to upgrade to this version or later to mitigate the vulnerability.
No, there are no known workarounds for this vulnerability. Upgrading to the fixed version of the package is the only recommended solution.
For further support on vulnerability remediation, you can contact info@devnack.com. They can provide guidance and assistance in fixing this vulnerability.