Skip to main content
VulnerabilityPublished Updated

CVE-2024-11831: serialize-javascript · Cross-site Scripting (XSS)

Affects serialize-javascriptSource GCVE Database

0
Compare
Authoritative record:CVE-2024-11831· Medium 5.4

Not known to be exploited · CVSS 5.4 Medium : upgrade to 6.0.2 when convenient.

Data as of 1 Dec 2026, 04:45 UTC

CVSS 3.1 base score
5.4Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (redhat)CVSS 3.15.4
Patch
Available – fixed in 6.0.2
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Feb 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.

What to do

Upgrade serialize-javascript to 6.0.2.

Affected software

ProductAffectedFixed in
npmserialize-javascriptAffected
  • >=6.0.0 <6.0.2
Fixed in
  • 6.0.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in serialize-javascript version 6.0.2. Users and organizations should upgrade to this fixed version to remediate the vulnerability. No alternative mitigations meeting Red Hat Product Security criteria are currently available. Applying the official fix is the recommended and effective mitigation.

Description

A Cross-site Scripting (XSS) vulnerability exists in the serialize-javascript npm module due to improper sanitization of certain inputs like regex or other JavaScript object types. This flaw allows attackers to inject malicious code that executes when deserialized by a web browser. The issue affects versions from 6.0.0 up to but not including 6.0.2. It is critical in scenarios where serialized data is sent to web clients, potentially compromising website or web application security. A fix is available in version 6.0.2.

References

Community reviews

Loading reviews…