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

renovate - #trivial - Update dependency prismjs to v1.27.0 [SECURITY] #1840

Merged
merged 2 commits into from May 12, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 11, 2022

WhiteSource Renovate

This PR contains the following updates:

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

GitHub Vulnerability Alerts

CVE-2021-23341

The package prismjs before 1.23.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the prism-asciidoc, prism-rest, prism-tap and prism-eiffel components.

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


Configuration

📅 Schedule: "" (UTC).

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

Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 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. ⚠ Warning: custom changes will be lost.

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

@github-actions github-actions bot added the tools This PR changes at least one "tool" label May 11, 2022
@siggerzz siggerzz changed the title renovate - Update dependency prismjs to v1.27.0 [SECURITY] renovate - Update dependency prismjs to v1.27.0 [SECURITY] #trivial May 11, 2022
@renovate renovate bot force-pushed the renovate/npm-prismjs-vulnerability branch from 64804b1 to 78e4a79 Compare May 11, 2022 10:58
@renovate renovate bot changed the title renovate - Update dependency prismjs to v1.27.0 [SECURITY] #trivial renovate - Update dependency prismjs to v1.27.0 [SECURITY] May 11, 2022
@siggerzz siggerzz changed the title renovate - Update dependency prismjs to v1.27.0 [SECURITY] renovate - Update dependency prismjs to v1.27.0 [SECURITY] #globalconfig May 11, 2022
@renovate renovate bot changed the title renovate - Update dependency prismjs to v1.27.0 [SECURITY] #globalconfig renovate - Update dependency prismjs to v1.27.0 [SECURITY] May 11, 2022
@siggerzz siggerzz closed this May 11, 2022
@siggerzz siggerzz reopened this May 11, 2022
@renovate renovate bot force-pushed the renovate/npm-prismjs-vulnerability branch from 51556a6 to 62d307f Compare May 11, 2022 12:59
@renovate renovate bot changed the title renovate - Update dependency prismjs to v1.27.0 [SECURITY] renovate - #trivial #globalconfig - Update dependency prismjs to v1.27.0 [SECURITY] May 11, 2022
@renovate renovate bot force-pushed the renovate/npm-prismjs-vulnerability branch from 62d307f to a17d7bd Compare May 11, 2022 15:33
@renovate renovate bot changed the title renovate - #trivial #globalconfig - Update dependency prismjs to v1.27.0 [SECURITY] renovate - #trivial - Update dependency prismjs to v1.27.0 [SECURITY] May 11, 2022
@renovate renovate bot changed the title renovate - #trivial - Update dependency prismjs to v1.27.0 [SECURITY] renovate - #trivial - Update dependency prismjs to v1.27.0 [SECURITY] - autoclosed May 11, 2022
@renovate renovate bot closed this May 11, 2022
@renovate renovate bot deleted the renovate/npm-prismjs-vulnerability branch May 11, 2022 15:37
@renovate renovate bot changed the title renovate - #trivial - Update dependency prismjs to v1.27.0 [SECURITY] - autoclosed renovate - #trivial - Update dependency prismjs to v1.27.0 [SECURITY] May 11, 2022
@renovate renovate bot restored the renovate/npm-prismjs-vulnerability branch May 11, 2022 17:49
@renovate renovate bot reopened this May 11, 2022
@renovate renovate bot force-pushed the renovate/npm-prismjs-vulnerability branch 4 times, most recently from 4eaaeb4 to fd97563 Compare May 12, 2022 10:34
siggerzz
siggerzz previously approved these changes May 12, 2022
@renovate renovate bot force-pushed the renovate/npm-prismjs-vulnerability branch from fd97563 to 07dc9f1 Compare May 12, 2022 10:52
@siggerzz siggerzz merged commit 2fda5b4 into master May 12, 2022
@siggerzz siggerzz deleted the renovate/npm-prismjs-vulnerability branch May 12, 2022 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools This PR changes at least one "tool"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants