Skip to content
Heist/ feed
Back to feed
MediumFix available

node-serialize-javascript — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-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 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.

Products
node-serialize-javascript
Affected versions
6.0.0-2
Fixed versions
6.0.0-2+deb12u1, 6.0.2-1
CVEs
CVE-2024-11831
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 17:55 UTC · Revision 1

Source evidence

DEBIAN-CVE-2024-11831

core-osv · Original source

Published 10 Feb 2025, 16:15 UTC

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.

osv:DEBIAN-CVE-2024-11831

node-serialize-javascript

Fixed versions: 6.0.0-2+deb12u1

node-serialize-javascript

Fixed versions: 6.0.2-1

node-serialize-javascript

Fixed versions: 6.0.2-1

Complete source record
{
  "id": "9f63dbfb0f66cb4965c035b15f650e16ba84f29ffc09d5f4898eb6e9b02560bd",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2024-11831",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2024-11831",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2024-11831",
    "products": [
      {
        "name": {
          "value": "node-serialize-javascript",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.0.0-2+deb12u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "6.0.0-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-serialize-javascript",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.0.2-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "node-serialize-javascript",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.0.2-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2024-11831",
      "aliases": [
        "DEBIAN-CVE-2024-11831"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.0.0-2+deb12u1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-serialize-javascript",
            "purl": "pkg:deb/debian/node-serialize-javascript?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "6.0.0-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2024-11831.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.0.2-1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-serialize-javascript",
            "purl": "pkg:deb/debian/node-serialize-javascript?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2024-11831.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.0.2-1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-serialize-javascript",
            "purl": "pkg:deb/debian/node-serialize-javascript?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2024-11831.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-31T09:47:33.618224152Z",
      "provider": "osv",
      "upstream": [
        "CVE-2024-11831"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2024-11831"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2024-11831",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 461470,
  "published_at": "2025-02-10T16:15:37.08+00:00"
}