Skip to content

[Snyk] Security upgrade markdown-it from 12.3.2 to 14.0.0#1041

Open
posit-snyk-bot wants to merge 1 commit into
mainfrom
snyk-fix-a82b7283a4eba1c1a732082f3903114f
Open

[Snyk] Security upgrade markdown-it from 12.3.2 to 14.0.0#1041
posit-snyk-bot wants to merge 1 commit into
mainfrom
snyk-fix-a82b7283a4eba1c1a732082f3903114f

Conversation

@posit-snyk-bot

Copy link
Copy Markdown
Contributor

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.

Snyk changed the following file(s):

  • apps/vscode-markdownit/package.json

Note for zero-installs users

If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠️ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-LINKIFYIT-17817062
  125  

Breaking Change Risk

Merge Risk: Medium

Notice: This assessment is enhanced by AI.


Important

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

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

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Regular Expression Denial of Service (ReDoS)

@posit-snyk-bot

Copy link
Copy Markdown
Contributor Author

Merge Risk: Medium

This upgrade spans two major versions (v13 and v14) and introduces breaking changes primarily related to the runtime environment and module system.

v13.0.0 Breaking Changes:

  • Node.js Support: Support for Node.js v12 is dropped. Your environment must be on Node.js v14.14 or newer.
  • ESM Transition: The library and its official plugins were rewritten to ESM, though CJS fallbacks are provided.

v14.0.0 Breaking Changes:

  • Browser Support: Support for ancient browsers has been dropped as the code now uses more modern JavaScript features like .fromCodePoint.
  • ESM Rewrite: The project is now fully written in ESM, but continues to provide a CJS fallback for compatibility.
  • API Stability: The changelog explicitly states that no API signatures were changed in the main library, meaning existing markdownit() calls should not require code changes.

Recommendation:
Verify that your production environment runs on a supported Node.js version (14.14+). If this package is used on the front-end, confirm that your target browsers are not in the "ancient" category. While CJS fallbacks are available, it is advisable to test your build process to ensure the new module format is handled correctly.

Source: Official Changelog

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

@posit-snyk-bot

posit-snyk-bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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