Skip to content

fix: update node-forge, undici, simple-git and other dependencies with security advisories - #856

Merged
santosh-chamoli merged 3 commits into
adobe:masterfrom
chetan2002:chaggarwal-adobe-cli-kodiak-r1-fixes
Dec 1, 2026
Merged

santosh-chamoli merged 3 commits into
adobe:masterfrom
chetan2002:chaggarwal-adobe-cli-kodiak-r1-fixes

Conversation

@chetan2002

@chetan2002 chetan2002 commented Nov 25, 2026 •

Copy link
Copy Markdown

Description

Updates dependencies that have published security advisories. package.json gets three scoped overrides; everything else is a lockfile update.

Package Before → After Advisories fixed (GitHub Advisory Database) How
node-forge 1.4.0 → 1.4.4 21 (8 high), fixed in 1.4.1 and 1.4.3, e.g. GHSA-rhr8-3pm8-cq29, GHSA-86w9-cpqp-85rv lockfile
undici (and the copy bundled in npm) 6.29.0 / 6.28.0 → 6.29.1 8 (4 high), e.g. GHSA-2m5v-pch6-74hx, GHSA-rfgv-xxqx-mfg5 lockfile; npm 11.20.0 → 11.21.3
simple-git 3.36.0 → 4.1.0 GHSA-x6jw-m9v5-85vh, GHSA-g4wm-2vf7-vfgr, GHSA-858h-whjf-mvg5 override yeoman-generator > simple-git
@simple-git/argv-parser 1.1.1 → 3.0.0 GHSA-v5rq-49vh-5v5c comes with simple-git 4.1.0
brace-expansion bundled in npm 5.0.9 → 5.0.12 GHSA-q2hr-2g5m-vwhr, GHSA-qhr7-859c-m2p7, GHSA-6j4f-fj2g-mc7p npm 11.21.3
joi 17.13.8 → 17.13.9 GHSA-4528-x5fx-h6hg lockfile
body-parser 1.20.8 → 1.20.9 GHSA-27r3-jxmh-p828 lockfile
qs 6.16.0 → 6.16.2 GHSA-6pq8-jhm2-2vcw lockfile
follow-redirects 1.16.0 → 1.16.3 GHSA-mrwp-f3q8-3g9p, GHSA-q3jh-wrc6-jgq8, GHSA-8r9p-f939-6h3c lockfile
http-cache-semantics 4.2.0 → 4.3.0 none active (its advisory was withdrawn); updated with npm lockfile
source-map-js 1.2.1 → 1.2.4 GHSA-68fv-2mgg-jv7q lockfile
tmp 0.0.33 → 0.2.7 GHSA-ph9p-34f9-6g65, GHSA-52f5-9888-hmc6 override external-editor > tmp
basic-ftp 5.3.1 → 6.2.6 GHSA-r4jh-29pc-gfqr, GHSA-5pm8-86m8-9m6r, GHSA-c475-qrg2-pj4r override get-uri > basic-ftp
cross-spawn 7.0.6 → 7.1.2 GHSA-ghv9-86vm-4v8m (critical), GHSA-w3gc-668g-rf8f lockfile

None of the new versions has an open advisory in the GitHub Advisory Database.

Why the three overrides are needed:

  • simple-git: every 3.x release is affected. yeoman-generator 7, which all 12 @adobe/generator-* packages need, depends on 3.x. The first yeoman-generator release that uses 4.x needs Node 22.18+, which would drop Node 20.
  • tmp: external-editor 3.1.0 is unmaintained and pins tmp ^0.0.33. It only calls tmpNameSync, which 0.2.7 still provides.
  • basic-ftp: get-uri pins ^5. The only breaking change in 6.0 is that a separate data-transfer host is refused by default (FTP-bounce protection). get-uri only uses access, lastMod, list, downloadTo and close.

npm run check-overrides (the prepack gate) reports all three overrides as still needed.

Not fixed: open@8.4.2 (CVE-2026-119025). The fix is in open 11, which is ESM-only. aio-cli-plugin-app, -app-dev and -info load open ^8 with require(), so an override would break them. Fixing it needs new releases of those plugins.

Behavior changes:

  • simple-git 4 blocks more Git environment variables (for example GIT_DIR and VISUAL). If one of them is set, yeoman-generator's git.name(), git.email() and github.username() helpers throw. No bundled generator calls these helpers.
  • basic-ftp 6 refuses a different data-transfer host, as described above.

Related Issue

No public issue; the advisories are listed above.

Motivation and Context

Dependency scanning flagged these advisories in the dependency tree shipped with @adobe/aio-cli. Node 20.17 and later stay supported.

How Has This Been Tested?

Tested on Node 20.17.0, 22 and 24. Each result is compared with master, or with the tree before the commit.

  • Tests: unit 53/53 on all three Node versions; e2e 2/2; lint passes. On Node 20.17, ESLint crashes before linting, the same as on master.
  • Advisories: npm audit compared with master:
    • Distinct advisories: 63 → 9, none new. The 9 left are moderate or low (fast-uri, glob, ip-address, minimatch, uuid).
    • Critical: 3 → 0.
    • High: 27 → 0.
    • Of the advisories this PR targets, only open@8.4.2 is still in the lockfile.
  • Fresh resolution (CI deletes the lockfile): npm 10 and npm 11 resolve the same fixed versions.
  • Commands that use node-forge, undici and simple-git:
    • aio certificate generate, fingerprint and verify, checked against OpenSSL.
    • aio plugins install, update and uninstall.
    • node-gyp header downloads.
    • All 14 bundled Yeoman generators: 24 runs, output identical to master.
  • Runtime checks for the other updates: 24 checks, each run through the package that loads the dependency:
    • external-editor edit.
    • get-uri and pac+ftp against a local FTP server.
    • axios redirects (Authorization is dropped on cross-host redirects).
    • aio-lib-web joi validation.
    • postcss source maps.
    • pacote online, then from the offline cache.
    • Results: 24/24 on all three Node versions. The tree before the second commit fails only the 7 version assertions.
  • aio app dev: 15 request types (JSON, urlencoded, nested query, charset, malformed, over 1 MB, gzip). Responses are identical before and after.
  • Generator commands: aio app init (3 linters), aio app add ci and aio templates install. 5/5 pass, and all 172 generated files are identical.

Screenshots (if appropriate):

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@chetan2002 chetan2002 changed the title fix: remediate node-forge, undici, simple-git advisories (APPBLD-5906, 5912, 5915, 5916) fix: remediate Kodiak R1 and R2 dependency advisories Nov 26, 2026

@sandeep-rana sandeep-rana 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.

LGTM

@sandeep-rana sandeep-rana 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.

LGTM

Chetan Aggarwal added 2 commits November 30, 2026 13:23
- node-forge 1.4.0 -> 1.4.4
- undici 6.29.0 -> 6.29.1, and npm 11.20.0 -> 11.21.3 for npm's
  bundled undici 6.28.0 -> 6.29.1
- override simple-git to ^4.1.0 under yeoman-generator, which pulls
  @simple-git/argv-parser 3.0.0
…p and basic-ftp

- lockfile: joi 17.13.9, body-parser 1.20.9, qs 6.16.2, follow-redirects 1.16.3,
  http-cache-semantics 4.3.0, source-map-js 1.2.4
- scoped override external-editor > tmp ^0.2.7 (drops tmp 0.0.33)
- scoped override get-uri > basic-ftp ^6.2.6
@chetan2002
chetan2002 force-pushed the chaggarwal-adobe-cli-kodiak-r1-fixes branch from 02a6670 to 22c7759 Compare November 30, 2026 07:53
@chetan2002 chetan2002 changed the title fix: remediate Kodiak R1 and R2 dependency advisories fix: update node-forge, undici, simple-git and other dependencies with security advisories Nov 30, 2026
cross-spawn 7.0.6 allowed command injection on Windows when spawning batch files (GHSA-ghv9-86vm-4v8m, GHSA-w3gc-668g-rf8f). All dependents accept ^7, so this is a lockfile-only update.
@santosh-chamoli
santosh-chamoli merged commit 4e61d76 into adobe:master Dec 1, 2026
11 checks passed
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.

4 participants