Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency prismjs to v1.27.0 [security] #599

Merged
merged 1 commit into from
May 23, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 18, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
prismjs 1.23.0 -> 1.27.0 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2021-32723

Some languages before 1.24.0 are vulnerable to Regular Expression Denial of Service (ReDoS).

Impact

When Prism is used to highlight untrusted (user-given) text, an attacker can craft a string that will take a very very long time to highlight. Do not use the following languages to highlight untrusted text.

  • ASCIIDoc
  • ERB

Other languages are not affected and can be used to highlight untrusted text.

Patches

This problem has been fixed in Prism v1.24.

References

  • PrismJS/prism#​2774
  • PrismJS/prism#​2688

CVE-2021-3801

Prism is a lightweight, robust, and elegant syntax highlighting library. The prismjs package is vulnerable to ReDoS (regular expression denial of service). An attacker that is able to provide a crafted HTML comment as input may cause an application to consume an excessive amount of CPU.

CVE-2022-23647

Impact

Prism's Command line plugin can be used by attackers to achieve an XSS attack. The Command line plugin did not properly escape its output, leading to the input text being inserted into the DOM as HTML code.

Server-side usage of Prism is not impacted. Websites that do not use the Command Line plugin are also not impacted.

Patches

This bug has been fixed in v1.27.0.

Workarounds

Do not use the Command line plugin on untrusted inputs, or sanitized all code blocks (remove all HTML code text) from all code blocks that use the Command line plugin.

References


Release Notes

PrismJS/prism

v1.27.0

Compare Source

New components
Updated components
Updated plugins
Other

v1.26.0

Compare Source

New components
Updated components
Updated plugins
Updated themes
Other

v1.25.0

Compare Source

New components
Updated components
Updated plugins
Updated themes
  • Twilight
Other

v1.24.1

Compare Source

Updated components
Updated plugins

v1.24.0

Compare Source

New components
Updated components
Updated plugins

Configuration

📅 Schedule: "" in timezone Asia/Tokyo.

🚦 Automerge: Enabled.

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, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/npm-prismjs-vulnerability branch from 1d81fa8 to a9b8e2e Compare March 26, 2022 13:37
@renovate renovate bot changed the title fix(deps): update dependency prismjs to v1.25.0 [security] fix(deps): update dependency prismjs to v1.27.0 [security] Mar 26, 2022
@renovate renovate bot changed the title fix(deps): update dependency prismjs to v1.27.0 [security] fix(deps): update dependency prismjs to v1.27.0 [security] - autoclosed May 23, 2022
@renovate renovate bot closed this May 23, 2022
@renovate renovate bot deleted the renovate/npm-prismjs-vulnerability branch May 23, 2022 08:31
@renovate renovate bot changed the title fix(deps): update dependency prismjs to v1.27.0 [security] - autoclosed fix(deps): update dependency prismjs to v1.27.0 [security] May 23, 2022
@renovate renovate bot restored the renovate/npm-prismjs-vulnerability branch May 23, 2022 08:31
@renovate renovate bot reopened this May 23, 2022
@renovate renovate bot force-pushed the renovate/npm-prismjs-vulnerability branch 2 times, most recently from 8441712 to f090211 Compare May 23, 2022 08:37
@codecov
Copy link

codecov bot commented May 23, 2022

Codecov Report

Merging #599 (5eecda1) into master (1b151f0) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #599   +/-   ##
=======================================
  Coverage   73.33%   73.33%           
=======================================
  Files           4        4           
  Lines          30       30           
  Branches        6        6           
=======================================
  Hits           22       22           
  Misses          8        8           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b151f0...5eecda1. Read the comment docs.

@renovate renovate bot force-pushed the renovate/npm-prismjs-vulnerability branch from f090211 to 5eecda1 Compare May 23, 2022 11:00
@renovate renovate bot merged commit d11690d into master May 23, 2022
@renovate renovate bot deleted the renovate/npm-prismjs-vulnerability branch May 23, 2022 13:30
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.

1 participant