qiniu / qiniu/nodejs-sdk

vulnerability in netmask (CVE-2021-28918)

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

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
590
Forks
191
PR merge metrics
No merged PRs in 30d

Description

I have a project that depends on qiniu@7.3.2, which seems to be the latest version.

When running yarn audit, this error shows up since a few days ago:

┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ netmask npm package vulnerable to octal input data           │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ netmask                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.0.1                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ qiniu                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ qiniu > urllib > proxy-agent > pac-proxy-agent >             │
│               │ pac-resolver > netmask                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1658                        │
└───────────────┴──────────────────────────────────────────────────────────────┘
1 vulnerabilities found - Packages audited: 901

https://www.npmjs.com/advisories/1658

It’d be great to see a new version of qiniu that depends on netmask@^2.0.1. Thank you!

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 with the dependency path qiniu > urllib > proxy-agent > pac-proxy-agent > pac-resolver > netmask and inspect the package metadata or lockfile that selects netmask. Run yarn audit to confirm the advisory, then verify that the dependency resolves to netmask >=2.0.1 and that the audit warning is gone.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
backend-api-design, security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.