Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security Vulnerabilities: node-static in extension-monitor #491

Closed
astangelo opened this issue Jan 26, 2023 · 3 comments
Closed

Security Vulnerabilities: node-static in extension-monitor #491

astangelo opened this issue Jan 26, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@astangelo
Copy link

Description
The extension-monitor project imports the [email protected] which has two outstanding security vulnerabilities. The package is pulled in by way of [email protected], which is pulled in by [email protected], which is implemented in Dashboard. And while newer versions of minimist exist, node-static hasn't been updated in 4 years and optimist is deprecated. 😬

Security Vulnerabilities

  1. Minimist <=1.2.5 is vulnerable to Prototype Pollution via file index.js, function setKey() (lines 69-95)
  2. minimist before 1.2.2 could be tricked into adding or modifying properties of Object.prototype using a "constructor" or "proto" payload

Expectations
Replacing node-static with another simple static file server. Those are fairly common on NPM, and you may already have a next-best choice. However, if you need help identifying one that doesn't have a current vulnerability against it, I'd be happy to help provide some suggestions.

Additional context

@astangelo astangelo added the bug Something isn't working label Jan 26, 2023
@mkriegeskorte
Copy link
Contributor

@astangelo Thanks for your report! We’re looking into it ✌️

@janthurau
Copy link
Collaborator

hey @astangelo, thanks for the report! We're using it for the single purpose of serving the few dashboard files, do you have a recommendation on a simple, lightweight alternative to node-static?

@mkriegeskorte
Copy link
Contributor

@astangelo I’ve swapped node-static for serve-handler in the PR above 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants