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 issues in v7 dependencies #2678

Open
willdurand opened this issue Mar 20, 2023 · 13 comments
Open

security issues in v7 dependencies #2678

willdurand opened this issue Mar 20, 2023 · 13 comments

Comments

@willdurand
Copy link
Member

> web-ext@7.5.0 audit-deps /home/circleci/web-ext
> node ./scripts/audit-deps

== audit-deps: blocking security issues

request (https://github.com/advisories/GHSA-p8p7-x288-28g6):
  2.88.2, paths: sign-addon>request
@Araxeus
Copy link

Araxeus commented Apr 20, 2023

Shame that #2688 wasn't included in the last hotfix

@willdurand any ETA for when will a new version be released?

@hymccord
Copy link

@Araxeus That wouldn't help anyhow. sign-addon 6.0.0 still depends on request 2.88.2

@willdurand
Copy link
Member Author

See also: #2822 (comment)

@aspiers
Copy link

aspiers commented May 5, 2024

It's not just request which is the issue here; sign-addon is no longer maintained.

@willdurand
Copy link
Member Author

Yeah, sign-addon is no longer maintained because we're about to release web-ext v8.

@willdurand
Copy link
Member Author

There is a new one:

jose (https://github.com/advisories/GHSA-hhhv-q57g-882q):
  4.13.1, paths: jose

@willdurand willdurand changed the title request library (via sign-addon) has a security issue security issues in v7 dependencies May 27, 2024
@Rob--W
Copy link
Member

Rob--W commented May 27, 2024

Is #3106 a duplicate of this?

@willdurand
Copy link
Member Author

Is #3106 a duplicate of this?

I think so, yeah

@GabenGar
Copy link

GabenGar commented Jun 7, 2024

There is still a warning in v8.0.0, this time asking to downgrade to 5.3.0:

express  <4.19.2
Severity: moderate
Express.js Open Redirect in malformed URLs - https://github.com/advisories/GHSA-rv95-896h-c2vc
fix available via `npm audit fix --force`
Will install web-ext@5.3.0, which is a breaking change
node_modules/express
  addons-scanner-utils  *
  Depends on vulnerable versions of express
  node_modules/addons-linter/node_modules/addons-scanner-utils
    addons-linter  >=2.11.0
    Depends on vulnerable versions of addons-scanner-utils
    node_modules/addons-linter
      web-ext  >=5.4.0
      Depends on vulnerable versions of addons-linter
      node_modules/web-ext

@willdurand
Copy link
Member Author

I am not clear on how you are getting this, could you please paste the full command?

@GabenGar
Copy link

You can trigger this audit message if you install web-ext and express in the same project:

mkdir test
cd test
npm init --yes
npm install --save-dev web-ext
npm audit
npm install express@4.19.2
npm audit

Then clean up folder and install them in different order, thus proving express is not a sole source of the warning:

npm uninstall express web-ext
rm --recurse node_modules package-lock.json
npm install express@4.19.2
npm audit
npm install --save-dev web-ext
npm audit

Resorting to drastic measure of nuking node_modules and package-lock.json because I found the warning persists without doing it.
The source of the problem probably goes deeper than addons-linter, because the warning exists even with 8.1.0.

@Standard8
Copy link
Member

Is there a reason why web-ext uses strict dependencies? For example, ws has a vulnerability in 8.17.0, but we can't automatically update to the minor version 8.17.1 that fixes it, because web-ext is specifying the strict dependency.

(if it is better to raise this in a new issue, I'm happy to do so).

@fregante
Copy link
Contributor

fregante commented Aug 4, 2024

sign-addon and request are no longer part of web-ext.

This issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants