Skip to content

Do you care about managing vulnerabilities? #55

@adriatic

Description

@adriatic

I encountered this same issue at a different okta sample and described the problem as well as presented the solution. As nobody responded, I could think that keeping the samples current exceeds the okta team's ability to do - let me please know if that is the case; I would then stop writing such observations 😄

Running npm install for the Express & Okta-Hosted Login Page Example results with:

λ npm install                                                                                                                    
                                                                                                                                 
> @okta/[email protected] postinstall c:\work\learning\okta\samples-nodejs-express-4                                
> node post-install.js                                                                                                           
                                                                                                                                 
Creating default configuration file                                                                                              
                                                                                                                                 
Sample project is ready to go!  Please add your configuration to c:\work\learning\okta\samples-nodejs-express-4\.samples.config.j
son, see the README for instructions.                                                                                            
                                                                                                                                 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):                                          
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (curre
nt: {"os":"win32","arch":"x64"})                                                                                                 
                                                                                                                                 
added 380 packages from 351 contributors and audited 1332 packages in 14.251s                                                    
found 25 vulnerabilities (4 low, 16 moderate, 5 high)                                                                            
  run `npm audit fix` to fix them, or `npm audit` for details                                                                                                                        

Subsequent execution of the npm audit results with the following suggestions:

  1. Run npm install --save-dev [email protected] to resolve 4 vulnerabilities
  2. Run npm install @okta/[email protected] to resolve 3 vulnerabilities
  3. Run npm install @okta/[email protected] to resolve 3 vulnerabilities
  4. Run npm update fsevents --depth 3 to resolve 13 vulnerabilities
  5. Run npm update fill-range --depth 7 to resolve 1 vulnerability

I did try to run these suggested commands, only to find that the total number of vulnerabilities dropped from 25 to 16, meaning that there is more work to be done, because of various inter-dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions