CVE-2025-64501CWE-79cross-site-scripting

CVE-2025-64501

High · published November 11, 2025

CVSS v3.1
7.6
EPSS
0%
Percentile
13.9
In the wild
Unconfirmed
What it is

⚡ A sneaky XSS vulnerability hides in an unassuming gem! The `prosemirror_to_html` gem versions 0.2.0 and below can let attackers slip in arbitrary JavaScript through malicious HTML attribute values. 🔥 Think of it like a restaurant kitchen that properly checks the contents of every plate but never inspects the garnishes on the side. If a chef sprinkles some harmful herbs on the garnish, it could ruin the meal for everyone who eats it! An attacker could inject malicious scripts into user-generated content, leading to unauthorized actions or data theft. This is especially concerning for applications that rely on user input to generate HTML, as end users could be exposed to harmful attacks without even realizing it!

Put simply

Think of it like a restaurant kitchen that properly checks the contents of every plate but never inspects the garnishes on the side. If a chef sprinkles some harmful herbs on the garnish, it could ruin the meal for everyone who eats it! The vulnerability arises because the `prosemirror_to_html` gem fails to properly escape HTML attribute values, allowing for Cross-Site Scripting (XSS) attacks. Although tag content is safe, the oversight in attribute handling opens the door for injecting harmful JavaScript.

What to do

An attacker could inject malicious scripts into user-generated content, leading to unauthorized actions or data theft. This is especially concerning for applications that rely on user input to generate HTML, as end users could be exposed to harmful attacks without even realizing it! Update to version 0.2.1 of the `prosemirror_to_html` gem immediately to close this security hole. Additionally, review user-generated ProseMirror content for potential vulnerabilities and consider implementing a Content Security Policy to further mitigate XSS risks. You've got this! With these steps, you’ll protect your application and keep users safe from harm. 🛡️

The record
Technical detail
CVSS v3.1
7.6 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00237 · 13.9th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2025-11-11T03:15Z
References (2)
EPSS history
Timeline
  • 10 NOV 21:37Z
    ProsemirrorToHtml: Cross-Site Scripting vulnerability through unescaped HTML attribute values
    cvelistv5