Bug 1930420 (CVE-2021-23341) - CVE-2021-23341 nodejs-prismjs: Regular expression denial of service via prism-asciidoc prism-rest prism-tap and prism-eiffel components
Summary: CVE-2021-23341 nodejs-prismjs: Regular expression denial of service via prism...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2021-23341
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1935242
Blocks: 1930421
TreeView+ depends on / blocked
 
Reported: 2021-02-18 20:25 UTC by Pedro Sampaio
Modified: 2023-08-31 09:03 UTC (History)
23 users (show)

Fixed In Version: nodejs-prismjs 1.23.0
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in nodejs-prismjs. A Regular Expression Denial of Service (ReDoS) is possible via the prism-asciidoc, prism-rest, prism-tap and prism-eiffel components.
Clone Of:
Environment:
Last Closed: 2021-10-28 01:16:13 UTC
Embargoed:


Attachments (Terms of Use)

Description Pedro Sampaio 2021-02-18 20:25:56 UTC
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.

References:

https://github.com/PrismJS/prism/commit/c2f6a64426f44497a675cb32dccb079b3eff1609
https://github.com/PrismJS/prism/issues/2583
https://github.com/PrismJS/prism/pull/2584
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1076583
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1076582
https://snyk.io/vuln/SNYK-JS-PRISMJS-1076581

Comment 7 Mark Cooper 2021-02-22 00:37:28 UTC
The OCP grafana-container is read-only and behind OpenShift OAuth, hence it has been marked Low and wontfix.

The OSSM servicemesh-grafana rpm is also installed by default behind OpenShift OAuth, however it is not read-only. Where the syntax highlighting could occur is very limited, that and even if we could find a vulnerable location the vulnerability would be limited to impacting the current user - aka DoS's oneself. If a query or such was vulnerable, a potential attacker would still need to be able to save the malicious query, then somehow get a victim to edit and view the syntax. With the impact potentially limited to the user's client session - i.e. the user visits the 'malicious' syntax displayed, causes the browser tab (depending on browser) to freeze it gets closed move on. Hence OSSM has also been marked Low/wontfix.

Comment 12 Sage McTaggart 2021-03-08 20:41:12 UTC
Statement:

OpenShift Container Platform (OCP)  and Red Hat Ceph Storage (RHCS) 3 and 4  grafana-container does package a vulnerable verison of prismjs. However due to the instance being read only and behind OpenShift OAuth, it has been given a Low impact. Additionally it has been marked as wont-fix at this time and may be fixed in a future release.

OpenShift ServiceMesh (OSSM)  ncludes a vulnerable version of prismjs. Due to the component being behind OpenShift OAuth and the vulnerability itself being limited to the syntax highlighting within grafana, it has been given a Low impact. The OSSM servicemesh-grafana component has been marked as wont-fix at this time and may be fixed in a future release.

Red Hat Ceph Storage RHCS 3 and 4 grafana  includes a vulnerable version of prismjs, however, due to the vulnerability itself being limited to the syntax highlighting within grafana, it has been given a Low impact.  RHCS 3 and 4  have been marked as wont-fix at this time and may be fixed in a future release.


Note You need to log in before you can comment on or make changes to this bug.