Skip to content

chore(deps): patch dependency vulnerabilities (audit fix + qs/brace-expansion overrides) - #233

Merged
jung-thomas merged 2 commits into
mainfrom
chore/dependency-updates
Sep 5, 2026
Merged

chore(deps): patch dependency vulnerabilities (audit fix + qs/brace-expansion overrides)#233
jung-thomas merged 2 commits into
mainfrom
chore/dependency-updates

Conversation

@jung-thomas

Copy link
Copy Markdown
Contributor

General dependency refresh focused on clearing Dependabot / npm audit advisories.

Changes

  • npm audit fix (non-breaking) — transitive bumps in npm-shrinkwrap.json. Clears the postcss, dompurify, nanoid, fast-xml-parser, undici, mermaid, fast-uri, and dev js-yaml advisories.
  • overrides.qs ^6.14.2^6.16.0 (root + @sap/cds-dk) — patches the qs array-limit / DoS advisories on every non-bundled path.
  • overrides.brace-expansion ^5.0.9 — patches the unbounded-expansion DoS on the glob/minimatch/body-parser/wdio chains.

Advisory count: 51 → 38. Unit/CI suite green — 566 passing, 0 failing (npm run test:ci).

Remaining advisories — not fixable from this manifest

Documented here so they aren't mistaken for missed work:

  1. @sap/cds-dk bundled deps (qs, brace-expansion, and the package itself, plus @cap-js/postgres which pulls it). @sap/cds-dk bundles 107 dependencies, so overrides cannot rewrite them — and it is a peerDependency, i.e. provided by the consumer's environment and not part of hana-cli's shipped dependency closure. Fix is an upstream @sap/cds-dk release.
  2. sap-hdb-promisfied nested brace-expansion@2.1.2 / js-yaml@4.x — this package ships a stray nested node_modules, so overrides don't reach them. Fix belongs upstream in sap-hdb-promisfied.
  3. exceljsuuid@^8.3.0 — advisory is a missing buffer bounds-check in v3/v5/v6 when buf is provided; exceljs only uses uuid.v4() without buf, so it is not reachable. The only npm-suggested "fix" is an exceljs major downgrade.
  4. Legacy WebdriverIO devtools / puppeteer dev-test chain (devtools, @wdio/devtools-servicepuppeteer-core, tar-fs, extract-zip, adm-zip, chromedriver) — the bulk of the remaining dev-only high alerts. Every npm-suggested fix is a major downgrade (e.g. webdriverio@8.14.6 from ^9.27.1). The real fix is migrating wdio.conf.js off the 'devtools' service to the WebDriver BiDi protocol (wdio v9 default) and dropping those devDeps — a test-config change that needs a UI-suite run to validate, so it is intentionally out of scope for this PR.

No runtime (production) dependency of hana-cli itself carries an unpatched, reachable advisory after this change.

…ce-expansion overrides)

- npm audit fix: non-breaking transitive bumps in npm-shrinkwrap.json
  (clears postcss, dompurify, nanoid, fast-xml-parser, undici, mermaid,
  fast-uri, js-yaml-dev alerts) — 51 -> 38 advisories.
- overrides.qs 6.14.2 -> 6.16.0 (root + @sap/cds-dk): patches qs
  array-limit/DoS advisories on all non-bundled paths.
- overrides.brace-expansion ^5.0.9: patches the unbounded-expansion DoS
  on all non-bundled paths (wdio/glob/minimatch chain, body-parser).

Unit/CI suite green (566 passing). Remaining advisories are not fixable
from this manifest: they live in bundled deps inside @sap/cds-dk (a
peerDependency, provided by the consumer env) and in nested copies
shipped inside sap-hdb-promisfied and exceljs (upstream fixes), plus the
legacy wdio 'devtools'/puppeteer dev-test chain (needs a wdio v9 BiDi
migration, tracked separately).
@jung-thomas
jung-thomas merged commit 837ed84 into main Sep 5, 2026
10 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.

1 participant