Skip to content

fix(deps): refresh the lockfile off three vulnerable transitive versions - #18

Merged
ruleofcodedev merged 1 commit into
developfrom
bugfix/refresh-vulnerable-lockfile
Aug 8, 2026
Merged

fix(deps): refresh the lockfile off three vulnerable transitive versions#18
ruleofcodedev merged 1 commit into
developfrom
bugfix/refresh-vulnerable-lockfile

Conversation

@ruleofcodedev

Copy link
Copy Markdown
Contributor

npm ci installed minimatch 9.0.5, brace-expansion 2.0.2 and lodash 4.17.21 — three high-severity advisories between them (ReDoS, DoS by memory exhaustion, prototype pollution, code injection via _.template). Development and CI were testing against vulnerable dependencies.

Consumers were never exposed

Verified, not assumed: installing ruleofcode@7.17.5 from the registry into an empty project resolves the patched versions and audits clean.

package advisory range what a fresh install gets
minimatch 9.0.0 – 9.0.6 9.0.9
brace-expansion 2.0.0 – 2.1.3 2.1.4
lodash ≤ 4.17.23 4.18.1

Our ranges are caret ranges, so npm resolves the patched versions on its own. Only this repository's pinned lockfile was stale.

Scope

package.json is untouched — the ranges already admitted the patched versions. npm audit --omit=dev now reports 0 vulnerabilities.

Gate

  • npx jest — 504 suites / 13866 tests, exit 0
  • npm run lint — 0 errors
  • node dist/cli.js audit — passed 35, failed 0

`npm ci` installed minimatch 9.0.5, brace-expansion 2.0.2 and lodash
4.17.21 — three high-severity advisories between them (ReDoS, DoS by
memory exhaustion, prototype pollution and code injection via
`_.template`). Development and CI were therefore testing against
vulnerable dependencies.

Consumers were never exposed: our ranges are caret ranges, so a fresh
install of the published package resolves the patched versions on its
own — verified by installing ruleofcode@7.17.5 from the registry into an
empty project, which audits clean. Only this repository's pinned
lockfile was stale.

package.json is untouched; the ranges already admitted the patched
versions. `npm audit --omit=dev` now reports zero vulnerabilities.
@ruleofcodedev
ruleofcodedev merged commit b1ceaec into develop Aug 8, 2026
2 checks passed
@ruleofcodedev
ruleofcodedev deleted the bugfix/refresh-vulnerable-lockfile branch August 8, 2026 12:59
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