Skip to content

Commit 7fa9fcf

Browse files
authored
Merge pull request #1 from GannaChernyshova/npm-update
updated npm update to cover app cve remediations in one command
2 parents 3423dad + 4caaa18 commit 7fa9fcf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.labspace/03-image-scanning.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@ A couple of things to note about this:
4343

4444
- If you scroll up or search the `pkg:npm/[email protected]` - this part of the report is related to the NPM package named `express`, which has version 4.17.1. You should see that the greatest fix version is `4.20.0`
4545
- Another source of HIGH CVEs is a `path-to-regexp 0.1.7`. The `express` package uses it internally and the `path-to-regexp` library is updated to a fixed version in express version `4.21.2`.
46+
- Aslo you may see another HIGH CVE `pkg:npm/[email protected]`
4647

47-
3. A next step for a typical developer is to clean up the package.json dependencies by upgrading the version of each dependency to solve for those vulnerabilities.
48+
3. A common next step for developers is to clean up the package.json by updating dependencies to address known vulnerabilities.
4849

49-
Update `express` to the recommended (or latest) version by running the following command:
50+
You could upgrade each dependency manually, but to simplify this process during the lab, let's use the following command, which automatically applies available fixes (and may update some packages to newer major versions):
5051

5152
```bash
52-
npm install [email protected]
53+
npm audit fix --force
5354
```
5455

5556
4. Build your image again by running the following command:

0 commit comments

Comments
 (0)