Skip to content

chore(deps): replace decompress with @xhmikosr/decompress 11.1.4 to fix vulnerability - #144

Merged
mathieu-benoit merged 1 commit into
score-spec:mainfrom
Akash3121:akash3121-vulnerabilities-fix/cve-2026-101894
Nov 16, 2026
Merged

mathieu-benoit merged 1 commit into
score-spec:mainfrom
Akash3121:akash3121-vulnerabilities-fix/cve-2026-101894

Conversation

@Akash3121

Copy link
Copy Markdown
Contributor

Summary

Replaces the unmaintained decompress@4.2.1 transitive dependency (via hugo-installer@4.0.1) with the patched @xhmikosr/decompress@11.1.4 package using npm overrides to remediate the following vulnerability reported by security scanners / LFX Insights:

  • CVE-2026-101894 (GHSA-hrh2-vp3x-79xf): Path traversal via symlink chain in decompress <= 4.2.1 and @xhmikosr/decompress < 10.2.2 / >= 11.0.0, < 11.1.4 (fixed in @xhmikosr/decompress 10.2.2 and 11.1.4).

Changes

  • Added "overrides": { "decompress": "npm:@xhmikosr/decompress@^11.1.4" } in package.json.
  • Updated package-lock.json so node_modules/decompress resolves to @xhmikosr/decompress@11.1.4.

Validation

  • npm ci (including postinstall hugo-installer binary download and archive extraction) — passed
  • npm ls decompress - resolved to decompress@npm:@xhmikosr/decompress@11.1.4
  • node_modules/.bin/hugo/hugo - passed (46 pages built)

…VE-2026-101894

Signed-off-by: Akash Reddy Jammula <akashreddyjammula@gmail.com>
@Akash3121

Copy link
Copy Markdown
Contributor Author

Hi @mathieu-benoit, could you please review this PR when you get a chance? It replaces the unmaintained decompress@4.2.1 transitive dependency (used by hugo-installer) with @xhmikosr/decompress@11.1.4 to address CVE-2026-101894 (GHSA-hrh2-vp3x-79xf). Thank you!

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain for the dependency override and corresponding lockfile update.

No open issues 🎉

What changed in this PR

This PR replaces the unmaintained archive-extraction dependency used by hugo-installer with a patched fork to address the reported symlink-chain path traversal vulnerability.

Changes:

  • Adds an npm override mapping decompress to @xhmikosr/decompress@^11.1.4.
  • Updates the lockfile to resolve version 11.1.4 and refresh its transitive dependencies.
File Description
package.json Adds the override for the patched extraction package.
package-lock.json Locks the replacement package and updates its dependency tree.

Review effort: Balanced

@mathieu-benoit mathieu-benoit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@mathieu-benoit
mathieu-benoit merged commit 4a6ad55 into score-spec:main Nov 16, 2026
3 checks passed
@Akash3121

Copy link
Copy Markdown
Contributor Author

Thanks Mathieu

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.

3 participants