shutterstock / shutterstock/public-api-javascript-sdk

Update superagent from v5 to v10

Open
#34 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
16
Forks
5
PR merge metrics
No merged PRs in 30d

Description

This package uses an outdated version of superagent in v5 which is almost 5 years old. Superagent v10 is now available containing CVE fixes.
Installing this package results in two npm WARN deprecated messages, resulting in 7 low severity vulnerabilities.

$ npm i shutterstock-api
npm WARN deprecated formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
npm WARN deprecated superagent@5.3.1: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net

added 37 packages in 2s

7 low severity vulnerabilities
$ npm ls superagent 
[redacted]@1.0.0 [redacted]
└─┬ shutterstock-api@1.1.41
  └── superagent@5.3.1

$ npm ls formidable 
[redacted]@1.0.0 [redacted]
└─┬ shutterstock-api@1.1.41
  └── superagent@5.3.1

Would an update to superagent@latest be possible?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the package dependency declaration for superagent and inspect the SDK's existing tests or API entry points for compatibility assumptions. Update the dependency to a supported version, account for the Node.js requirement, and verify installation no longer reports the cited deprecated packages or vulnerabilities while the existing checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.