Skip to content

🚨 [security] [ruby] Update redcarpet: 3.5.0 → 3.6.0 (minor)#352

Closed
depfu[bot] wants to merge 1 commit intomasterfrom
depfu/update/redcarpet-3.6.0
Closed

🚨 [security] [ruby] Update redcarpet: 3.5.0 → 3.6.0 (minor)#352
depfu[bot] wants to merge 1 commit intomasterfrom
depfu/update/redcarpet-3.6.0

Conversation

@depfu
Copy link
Contributor

@depfu depfu bot commented Jan 30, 2023


🚨 Your current dependencies have known security vulnerabilities 🚨

This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!


Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ redcarpet (3.5.0 → 3.6.0) · Repo · Changelog

Security Advisories 🚨

🚨 Injection/XSS in Redcarpet

Redcarpet is a Ruby library for Markdown processing. In Redcarpet before
version 3.5.1, there is an injection vulnerability which can enable a cross-site
scripting attack. In affected versions no HTML escaping was being performed when
processing quotes. This applies even when the :escape_html option was being used.

Release Notes

3.6.0

This release is not particularly heavy but brings a few improvements and fixes.

Improvements

  • Avoid warnings running on Ruby 3.2+ (See #721).
  • Consider <center> as a block-level element (See #702).
  • Properly provide a third argument to the table_cell callback indicating whether the current cell is part of the header or not.
    The previous implementation with two parameters is still supported (See #604 and #605).

Fixes

  • Match fence char and length when matching closing fence in fenced code blocks (Fixes #208).
  • Fix anchor generation on titles with ampersands (Fixes #696).

3.5.1

Fix a security vulnerability using :quote in combination with the :escape_html option.

Reported by Johan Smits.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 27 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu
Copy link
Contributor Author

depfu bot commented Feb 26, 2025

Closed in favor of #403.

@depfu depfu bot closed this Feb 26, 2025
@depfu depfu bot deleted the depfu/update/redcarpet-3.6.0 branch February 26, 2025 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants