Skip to content

WEBUI-2038: Fix json5 and tmp Dependabot vulnerabilities in lockfiles#3170

Merged
madhurkulshrestha-hyland merged 1 commit into
maintenance-3.1.xfrom
task-webui-2038-fix-a11y-json5-vuln-lts2023
May 21, 2026
Merged

WEBUI-2038: Fix json5 and tmp Dependabot vulnerabilities in lockfiles#3170
madhurkulshrestha-hyland merged 1 commit into
maintenance-3.1.xfrom
task-webui-2038-fix-a11y-json5-vuln-lts2023

Conversation

@madhurkulshrestha-hyland

@madhurkulshrestha-hyland madhurkulshrestha-hyland commented May 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes two Dependabot alerts by updating stale lockfiles:

  1. json5 Prototype Pollution (CVE-2022-46175)plugin/a11y/package-lock.json
  2. tmp arbitrary file write (GHSA-52f5-9888-hmc6)package-lock.json

Root Causes

json5@0.5.1 in a11y lockfile

The a11y package-lock.json was stale and still resolved babel-registerbabel-corejson5@0.5.1 from the ftest package. Since babel-register was removed from ftest in Round 2 (#3167), regenerating the lockfile eliminates the vulnerable dependency entirely.

tmp@0.2.3 in root lockfile

The root package-lock.json recorded tmp@0.2.3 for the ftest workspace sub-tree despite the override specifying ^0.2.4. Updated the lockfile entry to tmp@0.2.5 which is what npm actually installs.

Changes

  • Regenerated plugin/a11y/package-lock.json (drops json5@0.5.1, babel-core, babel-register)
  • Updated packages/nuxeo-web-ui-ftest/node_modules/tmp entry in root lockfile from 0.2.3 → 0.2.5

Verification

$ cd plugin/a11y && npm audit → found 0 vulnerabilities
$ npm audit → 7 vulnerabilities (all from @open-wc/karma-esm chain, unfixable without migration)

…CVE-2022-46175)

The a11y package-lock.json was stale and still resolved babel-register
-> babel-core -> json5@0.5.1 from the ftest package. Since babel-register
was removed from ftest in the round 2 fix, regenerating the lockfile
eliminates the vulnerable json5@0.5.1 dependency entirely.

Fixes Dependabot alert #129.
Copilot AI review requested due to automatic review settings May 21, 2026 18:07
@madhurkulshrestha-hyland madhurkulshrestha-hyland requested a review from a team as a code owner May 21, 2026 18:07
@madhurkulshrestha-hyland madhurkulshrestha-hyland requested review from AnilKumarVanga and swarnadipa-dev and removed request for a team May 21, 2026 18:07

Copilot AI 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.

Copilot wasn't able to review any files in this pull request.

@sonarqubecloud

Copy link
Copy Markdown

@madhurkulshrestha-hyland madhurkulshrestha-hyland merged commit 04c5a7b into maintenance-3.1.x May 21, 2026
13 of 14 checks passed
@madhurkulshrestha-hyland madhurkulshrestha-hyland deleted the task-webui-2038-fix-a11y-json5-vuln-lts2023 branch May 21, 2026 18:19
@madhurkulshrestha-hyland madhurkulshrestha-hyland changed the title WEBUI-2038: Regenerate a11y lockfile to fix json5 prototype pollution (CVE-2022-46175) WEBUI-2038: Fix json5 and tmp Dependabot vulnerabilities in lockfiles May 21, 2026
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.

2 participants