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

high severity in jsonwebtoken <=8.5.1 #1185

Closed
davehorton opened this issue Jan 4, 2023 · 4 comments
Closed

high severity in jsonwebtoken <=8.5.1 #1185

davehorton opened this issue Jan 4, 2023 · 4 comments

Comments

@davehorton
Copy link

The dependency on an older version of ibm-cloud-sdk-core is leading to a security issue. Per this related issue this was fixed recently in that repo. Are there any plans to issue a new release that incorporates this security fix?

@davehorton
Copy link
Author

any plans to address this?

@apaparazzi0329
Copy link
Contributor

apaparazzi0329 commented Jan 26, 2023

This fix has been addressed and simply reinstalling the node-sdk will bring in the updated version of ibm-cloud-sdk-core with the fix

@davehorton
Copy link
Author

what am I missing? npm audit still shows this vulnerability in my project:

$ npm audit
# npm audit report

jsonwebtoken  <=8.5.1
Severity: moderate
jsonwebtoken's insecure implementation of key retrieval function could lead to Forgeable Public/Private Tokens from RSA to HMAC - https://github.com/advisories/GHSA-hjrf-2m68-5959
jsonwebtoken unrestricted key type could lead to legacy keys usage  - https://github.com/advisories/GHSA-8cf7-32gw-wr33
jsonwebtoken vulnerable to signature validation bypass due to insecure default algorithm in jwt.verify() - https://github.com/advisories/GHSA-qwph-4952-7xr6
fix available via `npm audit fix`
node_modules/jsonwebtoken
  ibm-cloud-sdk-core  0.3.0 - 3.2.2-beta-5 || 4.0.0
  Depends on vulnerable versions of jsonwebtoken
  node_modules/ibm-cloud-sdk-core

2 moderate severity vulnerabilities

To address all issues, run:
  npm audit fix

MacBook-Pro-3:realtimedb-helpers dhorton$ npm ls jsonwebtoken
@jambonz/[email protected] /Users/dhorton/beachdog-enterprises/beachdog-networks/git/jambones.org/git/utils/realtimedb-helpers
└─┬ [email protected]
  └─┬ [email protected]
    └── [email protected]

@dpopp07
Copy link
Contributor

dpopp07 commented Jan 30, 2023

[email protected] includes the fix. It looks like 3.2.1 is still installed in your package.

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

No branches or pull requests

3 participants