Problem/Motivation

The React app's js/react-app/yarn.lock pins axios to 1.8.3, so released builds (js/react-app/build/static/js/main.js, built by ddev jqb:release from the lockfile) ship that version. The banner is visible in the served bundle:

function r(e,t){return"[Axios v1.8.3] ...

axios 1.8.3 has publicly disclosed advisories fixed in later 1.x releases, and dependency/vulnerability scanners flag sites with this module enabled (reported as "Vulnerable HTTP Client Version", CVSS 3.1 3.7 / Low, OWASP A03 Software Supply Chain Failures). The project is not covered by the security advisory policy and the advisories are already public, so this is handled in the public queue.

Steps to reproduce

  1. Enable the module and open /admin/config/services/jsonapi-query-builder (or fetch main.js directly).
  2. Search the loaded main.js for Axios v, it reports 1.8.3.

Proposed resolution

  • Bump axios in js/react-app/package.json to ^1.20.0 (latest stable).
  • Update yarn.lock so both axios@^1.20.0 and the transitive axios@^1.8.2 (from dev dependency wait-on) resolve to a single 1.20.0 entry.
  • Cut a new release so the rebuilt bundle reaches sites.

The app only uses the stable request API (no breaking changes within 1.x). yarn build succeeds and the built bundle reports axios 1.20.0.

Remaining tasks

  • Review MR
  • Tag a new 2.0.x release

User interface changes

None.

API changes

None.

Data model changes

None.

AI disclosure: The dependency upgrade and this issue summary were prepared with Claude Code (AI-assisted) and reviewed by me.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

amangrover90 created an issue. See original summary.

amangrover90’s picture

Status: Active » Needs review
amangrover90’s picture

Category: Bug report » Task