Skip to content

DOC-3386: Fix dependency vulnerabilities via http-server upgrade and minimal resolutions#4028

Open
kemister85 wants to merge 2 commits intomainfrom
fix/dependency-security-resolutions
Open

DOC-3386: Fix dependency vulnerabilities via http-server upgrade and minimal resolutions#4028
kemister85 wants to merge 2 commits intomainfrom
fix/dependency-security-resolutions

Conversation

@kemister85
Copy link
Contributor

@kemister85 kemister85 commented Mar 16, 2026

Ticket: DOC-3386

Changes:

  • Upgrade http-server from ^0.12.3 to ^14.1.1 (v14 no longer uses ecstatic)
  • Remove ecstatic resolution and direct devDep
  • Keep liquidjs resolution (antora-extension-livedemos pins ^9.37.0; fix requires updating that package)

Add resolutions for brace-expansion, sha.js, lodash, js-yaml, qs,
minimatch, ecstatic, liquidjs, yauzl. yarn audit: 0 vulnerabilities.
@kemister85 kemister85 requested a review from a team as a code owner March 16, 2026 11:35
@kemister85 kemister85 requested review from a team, MitchC1999, TheSpyder, kimwoodfield, lincolndennis and shanmen-tiny and removed request for a team March 16, 2026 11:35
Comment on lines +30 to +40
"resolutions": {
"brace-expansion": ">=1.1.12",
"sha.js": ">=2.4.12",
"lodash": ">=4.17.23",
"js-yaml": ">=4.1.1",
"qs": ">=6.14.2",
"minimatch": ">=3.1.4",
"ecstatic": ">=4.1.3",
"liquidjs": ">=10.25.0",
"yauzl": ">=3.2.1"
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to upgrade the direct dependencies so the transitive ones are correct?

This approach can lead to bugs when transitive dependencies are upgraded to new major versions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I’ve switched to upgrading the direct dependency instead of using resolutions where possible.

Changes:

  • Upgraded http-server from ^0.12.3 to ^14.1.1 – v14 no longer uses ecstatic, so the ecstatic resolution and direct devDep are removed.
  • Removed the other resolutions (brace-expansion, sha.js, lodash, js-yaml, qs, minimatch, yauzl) – they’re no longer needed; upstream fixes cover them.
  • Kept the liquidjs resolution – @tinymce/antora-extension-livedemos still pins liquidjs ^9.37.0. Fixing that would require updating that package and publishing a new version.

Result from local testing:
Build and serve both work, and yarn audit reports 0 vulnerabilities.

- Upgrade http-server ^0.12.3 to ^14.1.1 (removes ecstatic dependency)
- Remove ecstatic resolution and direct devDep
- Remove brace-expansion, sha.js, lodash, js-yaml, qs, minimatch, yauzl
  resolutions (no longer needed; upstream fixes)
- Keep liquidjs resolution (antora-extension-livedemos pins ^9.37.0)

Addresses review: prefer direct dependency upgrades over resolutions.
@kemister85 kemister85 changed the title DOC-3386: Fix transitive dependency vulnerabilities via yarn resolutions DOC-3386: Fix dependency vulnerabilities via http-server upgrade and minimal resolutions Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants