Skip to content

fix(deps): bump axios, @xmldom/xmldom and mocha to patched versions - #5752

Merged
DavertMik merged 2 commits into
4.xfrom
fix/security-deps-5731
Oct 14, 2026
Merged

DavertMik merged 2 commits into
4.xfrom
fix/security-deps-5731

Conversation

@DavertMik

Copy link
Copy Markdown
Contributor

Closes #5731

Bumps dependencies that had high-severity advisories, and switches them to caret ranges so patch releases reach users:

We had to move to mocha 12: overrides don't apply to consumers, and mocha 11.x still depends on serialize-javascript 6. The Node engine (>=22.12.0) already meets mocha 12's requirement.

mocha 12 is ESM with named exports only, so the internal imports in lib/mocha/* and the unit tests now use import { Suite, Test, reporters } from 'mocha' and { createCommon }. This also fixes common.runWithSuite → cmn.runWithSuite in ui.js.

Local results: unit tests 895 passing, runner tests 314 passing, tsd clean.

🤖 Generated with Claude Code

Closes #5731. mocha 12 pulls serialize-javascript 7 (GHSA-5c6j-r48x-rmvq,
GHSA-qj8w-gfj5-8c6v). Uses caret ranges so patch releases flow through.
mocha 12 is ESM with named exports, so internal imports were updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The mocha adapter uses Mocha.utils.inherits, removed in mocha 12.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DavertMik
DavertMik merged commit 99edd17 into 4.x Oct 14, 2026
15 checks passed
@DavertMik
DavertMik deleted the fix/security-deps-5731 branch October 14, 2026 00:38
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.2.0 pins axios, @xmldom/xmldom and mocha (serialize-javascript) to versions with high-severity advisories

2 participants