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

CVE-2024-53382 security issue #3864

Open
Rai-Rai opened this issue Mar 4, 2025 · 10 comments
Open

CVE-2024-53382 security issue #3864

Rai-Rai opened this issue Mar 4, 2025 · 10 comments

Comments

@Rai-Rai
Copy link

Rai-Rai commented Mar 4, 2025

Information:

  • Prism version: 1.29

Description
CVE-2024-53382

Prism (aka PrismJS) through 1.29.0 allows DOM Clobbering (with resultant XSS for untrusted input that contains HTML but does not directly contain JavaScript), because document.currentScript lookup can be shadowed by attacker-injected HTML elements.

@markvantilburg
Copy link

#3863

@zhu-xiaowei
Copy link

We have also encountered this issue and are looking forward to seeing it fixed.

@mohlsen
Copy link

mohlsen commented Mar 5, 2025

in https://github.com/PrismJS/prism/security#reporting-a-vulnerability it says not to create issues for Vulnerabilities. Was this reported to the maintainers as indicated in the Security Policy?

@markvantilburg
Copy link

I don't know about that but this report is 5 months ago: https://gist.github.com/jackfromeast/aeb128e44f05f95828a1a824708df660

@gileswells
Copy link

While I am not the original reporter nor the author of PR #3863 that resolves this, I've sent the maintainers a brief email on the off chance that they haven't yet seen this thread or the open PR. I'll try to respond back here if they don't respond back publicly.

@theanlay
Copy link

theanlay commented Mar 6, 2025

  • prismjs:1.29.0

Description
CVE-2024-53382 - Severity: Medium

Summary
Prism (aka PrismJS) through 1.29.0 allows DOM Clobbering (with resultant XSS for untrusted input that contains HTML but does not directly contain JavaScript), because document.currentScript lookup can be shadowed by attacker-injected HTML elements.

Can you help resolve this Vulnerability ?

@markvantilburg
Copy link

@DmitrySharabin can you escalate this?

@jake-slashid
Copy link

My teams compliance deadline for this is 2 months from today, we'll need to stop using prism then and would really rather not!

@markvantilburg
Copy link

My teams compliance deadline for this is 2 months from today, we'll need to stop using prism then and would really rather not!

The fix is merged and a new release is out

@chadlwilson
Copy link

Yeah, this can be closed now.

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

No branches or pull requests

8 participants