Skip to content

Update dependency prismjs to 1.27.0 [SECURITY]#85

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/npm-prismjs-vulnerability
Open

Update dependency prismjs to 1.27.0 [SECURITY]#85
renovate[bot] wants to merge 1 commit intomainfrom
renovate/npm-prismjs-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Apr 26, 2021

Mend Renovate

This PR contains the following updates:

Package Change
prismjs 1.22.0 -> 1.27.0

GitHub Vulnerability Alerts

CVE-2021-3801

Prism is a 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

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

Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

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

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 Mend Renovate. View repository job log here.

@renovate renovate Bot changed the title Update dependency prismjs to 1.23.0 [SECURITY] Update dependency prismjs to 1.24.0 [SECURITY] Jul 21, 2021
@renovate renovate Bot force-pushed the renovate/npm-prismjs-vulnerability branch from 0e80cd8 to ca85e02 Compare July 21, 2021 09:29
@renovate renovate Bot changed the title Update dependency prismjs to 1.24.0 [SECURITY] Update dependency prismjs to v1.24.0 [SECURITY] Jul 21, 2021
@renovate renovate Bot changed the title Update dependency prismjs to v1.24.0 [SECURITY] Update dependency prismjs to 1.25.0 [SECURITY] Oct 18, 2021
@renovate renovate Bot changed the title Update dependency prismjs to 1.25.0 [SECURITY] Update dependency prismjs to v1.24.0 [SECURITY] Mar 7, 2022
@renovate renovate Bot changed the title Update dependency prismjs to v1.24.0 [SECURITY] Update dependency prismjs to 1.27.0 [SECURITY] Jun 6, 2022
@renovate renovate Bot force-pushed the renovate/npm-prismjs-vulnerability branch from ca85e02 to c6da708 Compare June 6, 2022 06:32
@renovate renovate Bot changed the title Update dependency prismjs to 1.27.0 [SECURITY] Update dependency prismjs to 1.27.0 [SECURITY] - autoclosed Jul 29, 2022
@renovate renovate Bot closed this Jul 29, 2022
@renovate renovate Bot deleted the renovate/npm-prismjs-vulnerability branch July 29, 2022 01:24
@renovate renovate Bot changed the title Update dependency prismjs to 1.27.0 [SECURITY] - autoclosed Update dependency prismjs to 1.27.0 [SECURITY] Jul 29, 2022
@renovate renovate Bot reopened this Jul 29, 2022
@renovate renovate Bot restored the renovate/npm-prismjs-vulnerability branch July 29, 2022 04:21
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