Skip to content

[Snyk] Upgrade katex from 0.16.45 to 0.17.0#3578

Open
Mpdreamz wants to merge 1 commit into
mainfrom
snyk-upgrade-87818f805ce3992e3d404c0145efafc5
Open

[Snyk] Upgrade katex from 0.16.45 to 0.17.0#3578
Mpdreamz wants to merge 1 commit into
mainfrom
snyk-upgrade-87818f805ce3992e3d404c0145efafc5

Conversation

@Mpdreamz

Copy link
Copy Markdown
Member

snyk-top-banner

Snyk has created this PR to upgrade katex from 0.16.45 to 0.17.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 3 versions ahead of your current version.

  • The recommended version was released a month ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-UAPARSERJS-17353322
828 Proof of Concept

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.

Release notes
Package name: katex from katex GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade katex from 0.16.45 to 0.17.0.

See this package in npm:
katex

See this project in Snyk:
https://app.snyk.io/org/docs-wmk/project/69782e43-c85b-4c27-afd1-ad863be7a38a?utm_source=github&utm_medium=referral&page=upgrade-pr
@Mpdreamz Mpdreamz requested a review from a team as a code owner June 27, 2026 08:57
@Mpdreamz

Copy link
Copy Markdown
Member Author

Merge Risk: High

The upgrade to KaTeX v0.17.0 is a minor version bump that introduces several significant breaking changes requiring developer action.

Key Breaking Changes:

  • Security Setting for Links: The trust setting is now required to render \href and \url commands. Without adjusting this setting, links will break. This is a security measure to prevent untrusted content from creating arbitrary links.
  • ECMAScript Module Imports: For bundlers and loaders that support conditional exports, import katex from 'katex' will now resolve to the ECMAScript module. This may affect build configurations that rely on the previous module format.
  • \relax Command Behavior: The \relax command is now implemented as a function that stops expansions and parsing. This may change the rendering behavior of expressions that use it, such as \kern2\relax em, which will no longer work.
  • Internal API Change: The internal API for __defineFunction has changed, which could affect advanced integrations or plugins that use it. [3]

Recommendation:
Before merging, you must review your KaTeX implementation and:

  1. Set the trust option to true in your configuration if you are rendering trusted LaTeX source and need \href or \url to function.
  2. Verify that your build system correctly handles the new ECMAScript module exports.
  3. Test any complex expressions that may use the \relax command.

Source: KaTeX CHANGELOG [1]

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

@github-actions

Copy link
Copy Markdown

Label error. Requires exactly 1 of: automation, breaking, bug, changelog:skip, chore, ci, dependencies, documentation, enhancement, feature, fix, redesign. Found:

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