CVE-2020-8176: Cross-site scripting in @shopify/koa-shopify-auth

@shopify/koa-shopify-auth Updated 02 Oct 2025

Summary

17/05/2021
Yes i
Moderate
6.1

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 ↓

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 @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 →

Share this vulnerability

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.

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 →

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