Skip to content

upgrade javascript dependencies with security issues #5950

Closed

Description

@pjfanning
ISSUE TYPE
  • Bug Report

Have a look at the vulnerabilities in https://github.com/pjfanning/cloudstack/security/dependabot associated with package-lock.json

Activity

  1. yadvr commented on Feb 6, 2022

    @yadvr
    Member

    That link gives a 404, maybe it's privately visible only @pjfanning ?

  2. pjfanning commented on Feb 6, 2022

    @pjfanning
    MemberAuthor

    @rohityadavcloud these are the dependencies from that github page.

    nanoid
    Moderate severity
    
    
    shelljs
    High severity
    
    
    follow-redirects
    High severity
    
    
    json-schema
    Moderate severity
    
    
    ansi-regex
    Moderate severity
    
    
    nth-check
    Moderate severity
    
    
    tmpl
    Moderate severity
    
    
    axios
    High severity
    
    
    ansi-html
    High severity
    
    
    path-parse
    Moderate severity
    
    
    tar
    High severity
    
    
    @npmcli/git
    Moderate severity
    
    
    normalize-url
    High severity
    
    
    color-string
    Moderate severity
    
    
    trim-newlines
    High severity
    
    
    glob-parent
    High severity
    
    
    ws
    Moderate severity
    
    
    dns-packet
    High severity
    
    
    browserslist
    Moderate severity
    
    
    postcss
    Moderate severity
    
    
    hosted-git-info
    Moderate severity
    
    
    ssri
    High severity
    
    
    url-parse
    High severity
    
    
    lodash
    High severity
    
    
    merge
    High severity
    
    
    is-svg
    High severity
    
    
    y18n
    High severity
    
    
    elliptic
    Moderate severity
    
    
    node-notifier
    Moderate severity
    
    
    ini
    High severity
    
    
    highlight.js
    Moderate severity
    
    
    object-path
    High severity
    
    
    node-forge
    High severity
    
    
    node-fetch
    High severity
    
    
    bl
    High severity
    
    
    yargs-parser
    Moderate severity
    
    
    dot-prop
    High severity
    
    
    prismjs
    High severity
    
    serialize-javascript
    High severity
    
  3. pjfanning commented on Feb 6, 2022

    @pjfanning
    MemberAuthor

    It's easy to get github to run dependabot analyses on your own github fork of apache/cloudstack - there is Security tab (between Wiki and Insights)

  4. added this to the 4.17.0.0 milestone on Feb 7, 2022
  5. davidjumani commented on Feb 25, 2022

    @davidjumani
    Contributor

    @pjfanning Let's check back on the dependencies when #5151 is merged as it involves changing the vue library itself which could potentially fix some of the dependency issues

  6. nvazquez commented on Mar 10, 2022

    @nvazquez
    Contributor

    PR #5151 got merged today - @davidjumani please advise if this issue is still valid after the vue upgrade

  7. pjfanning commented on Mar 10, 2022

    @pjfanning
    MemberAuthor

    Thanks for working on #5151 - it does fix a lot of the dependabot highlighted issues. There are still a number of CVEs present though. One example is GHSA-hgjh-723h-mx2j

    Would it be possible to use npm audit fix on the latest code to see if there any low-hanging fruit changes that can be made?

  8. davidjumani commented on Mar 14, 2022

    @davidjumani
    Contributor

    Can be fixed by #6091

  9. nvazquez commented on Mar 16, 2022

    @nvazquez
    Contributor

    PR #6091 merged, @davidjumani can you please advise if there are more dependencies to update after the PR merged?

  10. pjfanning commented on Mar 16, 2022

    @pjfanning
    MemberAuthor

    thanks for looking into this - dependabot is still recommending this - https://github.com/apache/cloudstack/blob/main/ui/package.json#L89 to update to 7.0.0 - due to GHSA-r8f7-9pfq-mjmv

  11. davidjumani commented on Mar 16, 2022

    @davidjumani
    Contributor

    @utchoang Can you please check if updating this will cause breaking changes? Thanks

  12. yadvr commented on Mar 16, 2022

    @yadvr
    Member

    2cents - I think build dependencies can warning may be reviewed and ignored as the build depdencies aren't used to serve/run the webapp, we only use them to build a SPA (single page app) which is statically served by embedded Jetty. We don't use node-sass in prod.

  13. modified the milestones: 4.17.0.0, 4.18.0.0 on Apr 8, 2022
  14. modified the milestones: 4.18.0.0, 4.17.1.0 on Apr 20, 2022
  15. yadvr commented on Jun 30, 2022

    @yadvr
    Member

    Addressed in #6142 pl re-open if there's something we've missed. Thanks for the bug report @pjfanning

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions