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
- Enable the module and open
/admin/config/services/jsonapi-query-builder(or fetchmain.jsdirectly). - Search the loaded
main.jsforAxios v, it reports1.8.3.
Proposed resolution
- Bump
axiosinjs/react-app/package.jsonto^1.20.0(latest stable). - Update
yarn.lockso bothaxios@^1.20.0and the transitiveaxios@^1.8.2(from dev dependencywait-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.
Issue fork jsonapi_query_builder-3630777
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
Comment #3
amangrover90 commentedComment #4
amangrover90 commented