Skip to content

fix(deps): update dependency mathjs to v15 [security]#8064

Open
renovate-bot wants to merge 1 commit intogoogleapis:mainfrom
renovate-bot:renovate/npm-mathjs-vulnerability
Open

fix(deps): update dependency mathjs to v15 [security]#8064
renovate-bot wants to merge 1 commit intogoogleapis:mainfrom
renovate-bot:renovate/npm-mathjs-vulnerability

Conversation

@renovate-bot
Copy link
Copy Markdown
Contributor

@renovate-bot renovate-bot commented Apr 16, 2026

This PR contains the following updates:

Package Change Age Confidence
mathjs (source) ^14.0.0^15.2.0 age confidence

GitHub Vulnerability Alerts

GHSA-jvff-x2qm-6286

Impact

Two security vulnerabilities, the first of which was introduced in version 13.1.0, were detected that allowed executing arbitrary JavaScript via the expression parser of mathjs. You can be affected when you have an application where users can evaluate arbitrary expressions using the mathjs expression parser.

Patches

The problem is patched in mathjs v15.2.0.

Workarounds

There is no workaround without upgrading.

Severity
  • CVSS Score: 8.8 / 10 (High)
  • Vector String: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Release Notes

josdejong/mathjs (mathjs)

v15.2.0

Compare Source

  • Feat: Add amp-hour charge unit Ah (#​3617). Thanks @​adrfantini.
  • Feat: #​3595 implement num and den functions returning the parts of
    a fraction (#​3605). Thanks @​AnslemHack.
  • Fix: Provide TypeScript types for [and/or]TransformDependencies (#​3639).
    Thanks @​NilsDietrich.
  • Fix: two security vulnerabilities that allowed executing arbitrary JavaScript
    via the expression parser. Thanks @​CykuTW for finding and reporting them.

v15.1.1

Compare Source

v15.1.0

Compare Source

v15.0.0

Compare Source

!!! BE CAREFUL: BREAKING CHANGES !!!

v14.9.1

Compare Source

  • Fix: issue in HISTORY.md listing all fixes of v14.8.2 under v14.9.0.

v14.9.0

Compare Source

v14.8.2

Compare Source

v14.8.1

Compare Source

  • Fix: #​3538 config printing a warning when using { number: 'bigint' }
    (#​3540).

v14.8.0

Compare Source

v14.7.0

Compare Source

  • Feat: faster DenseMatrix symbol iterator (#​3521). Thanks @​dvd101x.
  • Feat: implement serialization support for Parser, fixing #​3509 (#​3525).
  • Fix: #​3519, #​3368 categories "Core functions" and "Construction functions"
    missing from the generated function overview.
  • Fix: #​3517 printTransformDependencies not exported in the type definitions.
  • Fix: add missing type definition for function diff (#​3520). Thanks @​dodokw.
  • Fix: #​3396 improve documentation of function range.
  • Fix: #​3523 cleanup old polyfills from the browser bundle
    by removing core-js (#​3524).

v14.6.0

Compare Source

v14.5.3

Compare Source

v14.5.2

Compare Source

  • Fix: add embedded docs for the deprecated physical constant coulomb,
    see #​3472.
  • Fix: #​3469 add ResultSet interface and improve isResultSet typing
    (#​3481). Thanks @​ranidam.

v14.5.1

Compare Source

  • Fix: #​3482 mathjs throwing an error related to BigInt when loading in
    specific environments.
  • Fix: syntax section of function numeric (see #​3448).
  • Fix: #​3472 rename physical constant coulomb to coulombConstant. The old
    name is still available for backward compatibility.
  • Fix: support multiplication of arrays with units (#​3456). Thanks @​Delaney.

v14.5.0

Compare Source

v14.4.0

Compare Source

v14.3.1

Compare Source

  • Fix: #​3350 cannot import a constant that is a complex number.

v14.3.0

Compare Source

v14.2.1

Compare Source

  • Fix: #​3377 remove redundant dependency @lambdatest/node-tunnel.

v14.2.0

Compare Source

v14.1.0

Compare Source

  • Feat: implement bigint support in functions log, log2, log10,
    larger, smaller, max, min (#​3345). Thanks @​gwhitney.
  • Fix: #​3342 hexadecimal input not turned into a bigint (#​3348).
  • Fix randomInt() not working (#​3345).
  • Docs: fixed description of sign in the embedded docs (#​3338).
    Thanks @​witer33.

v14.0.1

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • ""
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate-bot renovate-bot requested a review from a team as a code owner April 16, 2026 02:52
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 16, 2026

/gcbrun

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the mathjs dependency from ^14.0.0 to ^15.0.0 in the sample package files for google-cloud-automl and google-cloud-language. Feedback indicates that the current update to ^15.0.0 still allows for vulnerable versions; it is recommended to update to at least ^15.2.0 to address security vulnerability GHSA-jvff-x2qm-6286.

"@google-cloud/automl": "^5.1.1",
"csv": "^6.0.0",
"mathjs": "^14.0.0",
"mathjs": "^15.0.0",
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.

security-high high

The security vulnerabilities (GHSA-jvff-x2qm-6286) are patched in mathjs version 15.2.0. The current range ^15.0.0 allows for vulnerable versions (such as 15.0.0 or 15.1.1) to be resolved. Updating the minimum version to ^15.2.0 ensures that the security fix is applied.

Suggested change
"mathjs": "^15.0.0",
"mathjs": "^15.2.0",

"dependencies": {
"@google-cloud/automl": "^5.0.0",
"mathjs": "^14.0.0",
"mathjs": "^15.0.0",
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.

security-high high

The security vulnerabilities (GHSA-jvff-x2qm-6286) are patched in mathjs version 15.2.0. The current range ^15.0.0 allows for vulnerable versions (such as 15.0.0 or 15.1.1) to be resolved. Updating the minimum version to ^15.2.0 ensures that the security fix is applied.

Suggested change
"mathjs": "^15.0.0",
"mathjs": "^15.2.0",

@renovate-bot renovate-bot force-pushed the renovate/npm-mathjs-vulnerability branch from b9b6fe8 to 922b761 Compare April 16, 2026 07:03
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 16, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-mathjs-vulnerability branch from 922b761 to 6d7ff34 Compare April 16, 2026 10:44
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 16, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-mathjs-vulnerability branch from 6d7ff34 to 474ae19 Compare April 16, 2026 10:56
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 16, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-mathjs-vulnerability branch from 474ae19 to e7ac5a2 Compare April 16, 2026 14:26
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 16, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-mathjs-vulnerability branch from e7ac5a2 to 8627006 Compare April 16, 2026 15:27
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 16, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-mathjs-vulnerability branch from 8627006 to 647cd16 Compare April 16, 2026 17:04
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 16, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-mathjs-vulnerability branch from 647cd16 to 7c0ad3d Compare April 16, 2026 17:21
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 16, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-mathjs-vulnerability branch from 7c0ad3d to 53a3e02 Compare April 16, 2026 18:38
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 16, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-mathjs-vulnerability branch from 53a3e02 to f9b15dd Compare April 16, 2026 18:50
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 16, 2026

/gcbrun

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.

3 participants