Vulnerability · CVE-2024-11831
A flaw was found in npm-serialize-javascript.
Published Feb 10, 2025 · catalog updated Oct 15, 2026 · A flaw was found
Check if you run it
No confirmed exploitation is on record for CVE-2024-11831. EPSS is 1.12%. Act only if a listed version of A flaw was found is installed.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (A flaw was found).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- Medium5.4
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 1.12%
- Remediation
- Advisory link
- Affected products
- npm serialize-javascript · vendor Red Hat Red Hat Advanced Cluster Security 4.4 · vendor Red Hat Red Hat Advanced Cluster Security 4.5 · vendor Red Hat Red Hat Ceph Storage 7.1 · vendor Red Hat Red Hat Ceph Storage 8.1 · vendor Red Hat Red Hat Ceph Storage 9.0
A flaw was found in npm-serialize-javascript. The vulnerability occurs because the serialize-javascript module does not properly sanitize certain inputs, such as regex or other JavaScript object types, allowing an attacker to inject malicious code. This code could be executed when deserialized by a web browser, causing Cross-site scripting (XSS) attacks. This issue is critical in environments where serialized data is sent to web clients, potentially compromising the security of the website or web application using this package.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- npm serialize-javascript6.0.0 → 6.0.2
- vendor Red Hat Red Hat Advanced Cluster Security 4.4version unspecified
- vendor Red Hat Red Hat Advanced Cluster Security 4.5version unspecified
- vendor Red Hat Red Hat Ceph Storage 7.1version unspecified
- vendor Red Hat Red Hat Ceph Storage 8.1version unspecified
- vendor Red Hat Red Hat Ceph Storage 9.0version unspecified
- vendor Red Hat Red Hat Enterprise Linux 8version unspecified
- vendor Red Hat Red Hat Enterprise Linux 9version unspecified
How to fix CVE-2024-11831
Recommended remediation
A patch or advisory reference is linked. Open the original publisher for availability by product version.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2024-11831. EPSS is 1.12%. Act only if a listed version of A flaw was found is installed.
Which versions are affected?
Compare what you have installed with 6.0.0 → 6.0.2. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-79: Cross-site Scripting (XSS). EPSS 1.12%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Feb 10, 2025 · NIST NVD
Detected
A flaw was found in npm-serialize-javascript. The vulnerability occurs because the serialize-javascript module does not properly sanitize certain inputs, such as regex or other JavaScript object types, allowing an attacker to inject malicious code. This code could be executed when deserialized by a web browser, causing Cross-site scripting (XSS) attacks. This issue is critical in environments wher
Oct 15, 2026 · NIST NVD
Updated
A flaw was found in npm-serialize-javascript. The vulnerability occurs because the serialize-javascript module does not properly sanitize certain inputs, such as regex or other JavaScript object types, allowing an attacker to inject malicious code. This code could be executed when deserialized by a web browser, causing Cross-site scripting (XSS) attacks. This issue is critical in environments wher
Oct 15, 2026 · CIRCL Vulnerability Lookup
Updated
A flaw was found in npm-serialize-javascript. The vulnerability occurs because the serialize-javascript module does not properly sanitize certain inputs, such as regex or other JavaScript object types, allowing an attacker to inject malicious code. This code could be executed when deserialized by a web browser, causing Cross-site scripting (XSS) attacks. This issue is critical in environments wher
Oct 15, 2026 · GitHub Advisory Database
Fix available
serialize-javascript fixed in 6.0.2
Oct 15, 2026 · GitHub Advisory Database
Fix available
serialize-javascript fixed in 6.0.2
Oct 15, 2026 · GitHub Advisory Database
Updated
A flaw was found in npm-serialize-javascript. The vulnerability occurs because the serialize-javascript module does not properly sanitize certain inputs, such as regex or other JavaScript object types, allowing an attacker to inject malicious code. This code could be executed when deserialized by a web browser, causing Cross-site scripting (XSS) attacks. This issue is critical in environments wher
Sources
- CIRCL Vulnerability LookupVulnerability recordCVE-2024-11831
A flaw was found in npm-serialize-javascript. The vulnerability occurs because the serialize-javascript module does not properly sanitize certain inputs, such as regex or other JavaScript object types, allowing an attacker to inject malicious code. This code could be executed whe
vulnerability.circl.lu - CVE.orgVulnerability recordCVE-2024-11831
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2024-11831
30-day exploitation probability 1.1%
first.org - GitHub Advisory DatabasePackage advisoryGHSA-76p7-773f-r4q5
GitHub Advisory Database record mirrored by OSV.
github.com - GitLab Advisory DatabasePackage advisorynpm/serialize-javascript/CVE-2024-11831.yml
A flaw was found in npm-serialize-javascript. The vulnerability oc scripting (XSS) attacks. This issue is critical in environments where serialized data is sent to web clients, potentially compromising the security of the website or web application using this package." -date: "2026-09-01" +date: "2026-10-15" pubdate: "2025-02-10" affected_range: ">=6.0.0 <6.0.2" fixed_versions: @@ -49,6 +49,7 @@ u
gitlab.com - NIST NVDVulnerability recordCVE-2024-11831
A flaw was found in npm-serialize-javascript. The vulnerability occurs because the serialize-javascript module does not properly sanitize certain inputs, such as regex or other JavaScript object types, allowing an attacker to inject malicious code. This code could be executed whe
nvd.nist.gov - OpenSSF OSV / OSV ScannerPackage advisoryGHSA-76p7-773f-r4q5
Cross-site Scripting (XSS) in serialize-javascript
osv.dev
References
- Reference · access.redhat.com
- Reference · access.redhat.com
- Reference · access.redhat.com
- Reference · access.redhat.com
- Reference · access.redhat.com
- Reference · access.redhat.com
- Reference · access.redhat.com
- Reference · access.redhat.com
- WEB · access.redhat.com
- WEB · access.redhat.com
- WEB · bugzilla.redhat.com
- PACKAGE · github.com
- WEB · github.com
- WEB · github.com
- WEB · github.com
- ADVISORY · nvd.nist.gov
Freshness
Last verified in this catalog Oct 16, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.