After updating ghost cms today to v5.109.5, I saw that ghost-cli also had an update available, so I updated it as well.
uname -a
FreeBSD sojourner 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC amd64
$ node -v
v20.18.1
$ npm -v
10.9.2
- Noticed that the note to update ghost-cli doesn’t seem to interfere with the ghost cms update and thought that was odd?! CLI update is not a prerequisite to updating CMS? There’s no option in the CMS update workflow logic. You know best, I’m just curious if that’s an oversight?
- Updating ghost-cli output a list of 10 vulnerabilties in dependencies that I wanted to run by you to see how I can handle these, whether these are on your radar and maybe not relevant or …?
$ npm list
sojourner@ /usr/local/www/sojourner
├── ghost-cli@1.27.0
├── libvips@0.0.2
└── sharp@0.33.0
Are you aware of these vulnerabilties?
I ran npm audit fix
prior to the output below, didn’t want to --force
it though.
$ npm audit
# npm audit report
got <=11.8.3
**Severity: high**
Got allows a redirect to a UNIX socket - https://github.com/advisories/GHSA-pfrx-2q88-qq97
Depends on vulnerable versions of cacheable-request
fix available via `npm audit fix --force`
Will install ghost-cli@0.0.2, which is a breaking change
node_modules/download/node_modules/got
node_modules/got
download >=4.0.0
Depends on vulnerable versions of got
node_modules/download
ghost-cli *
Depends on vulnerable versions of download
Depends on vulnerable versions of got
Depends on vulnerable versions of latest-version
Depends on vulnerable versions of moment
Depends on vulnerable versions of mysql2
Depends on vulnerable versions of validator
node_modules/ghost-cli
package-json <=6.5.0
Depends on vulnerable versions of got
node_modules/latest-version/node_modules/package-json
latest-version 0.2.0 - 5.1.0
Depends on vulnerable versions of package-json
node_modules/latest-version
http-cache-semantics <4.1.1
**Severity: high**
http-cache-semantics vulnerable to Regular Expression Denial of Service - https://github.com/advisories/GHSA-rc47-6667-2j5j
fix available via `npm audit fix --force`
Will install ghost-cli@0.0.2, which is a breaking change
node_modules/download/node_modules/http-cache-semantics
cacheable-request 0.1.0 - 2.1.4
Depends on vulnerable versions of http-cache-semantics
node_modules/download/node_modules/cacheable-request
moment <=2.29.3
**Severity: high**
Moment.js vulnerable to Inefficient Regular Expression Complexity - https://github.com/advisories/GHSA-wc69-rhjr-hc9g
Path Traversal: 'dir/../../filename' in moment.locale - https://github.com/advisories/GHSA-8hfj-j24r-96c4
fix available via `npm audit fix --force`
Will install ghost-cli@0.0.2, which is a breaking change
node_modules/moment
mysql2 <=3.9.7
**Severity: critical**
mysql2 Remote Code Execution (RCE) via the readCodeFor function - https://github.com/advisories/GHSA-fpw7-j2hg-69v5
MySQL2 for Node Arbitrary Code Injection - https://github.com/advisories/GHSA-4rch-2fh8-94vw
mysql2 vulnerable to Prototype Pollution - https://github.com/advisories/GHSA-pmh2-wpjm-fj45
mysql2 cache poisoning vulnerability - https://github.com/advisories/GHSA-mqr2-w7wj-jjgr
mysql2 vulnerable to Prototype Poisoning - https://github.com/advisories/GHSA-49j4-86m8-q2jw
fix available via `npm audit fix --force`
Will install ghost-cli@0.0.2, which is a breaking change
node_modules/mysql2
validator <13.7.0
**Severity: moderate**
Inefficient Regular Expression Complexity in validator.js - https://github.com/advisories/GHSA-qgmg-gppg-76g5
fix available via `npm audit fix --force`
Will install ghost-cli@0.0.2, which is a breaking change
node_modules/validator
10 vulnerabilities (4 moderate, 4 high, 2 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Any suggestions on how to resolve these issues would be greatly appreciated.
~ Cheers