Skip to content
Heist/ feed
Back to feed
MediumFix available

node-xml2js — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2023-0842

xml2js version 0.4.23 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the __proto__ property to be edited.

Products
node-xml2js
Affected versions
Not specified
Fixed versions
0.4.23+~cs15.4.0+dfsg-7
CVEs
CVE-2023-0842
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 15:21 UTC · Revision 1

Source evidence

DEBIAN-CVE-2023-0842

core-osv · Original source

Published 5 Apr 2023, 20:15 UTC

xml2js version 0.4.23 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the __proto__ property to be edited.

osv:DEBIAN-CVE-2023-0842

node-xml2js

Fixed versions: 0.4.23+~cs15.4.0+dfsg-7

node-xml2js

Fixed versions: 0.4.23+~cs15.4.0+dfsg-7

node-xml2js

Fixed versions: 0.4.23+~cs15.4.0+dfsg-7

Complete source record
{
  "id": "206c187bd3c5911102a0b8d96d1f4599b6c6f90a77da23c724ec1eb8007357e1",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-0842",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2023-0842",
    "summary": "xml2js version 0.4.23 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the __proto__ property to be edited.",
    "evidence": "osv:DEBIAN-CVE-2023-0842",
    "products": [
      {
        "name": {
          "value": "node-xml2js",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.4.23+~cs15.4.0+dfsg-7",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "node-xml2js",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.4.23+~cs15.4.0+dfsg-7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "node-xml2js",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.4.23+~cs15.4.0+dfsg-7",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2023-0842",
      "aliases": [
        "DEBIAN-CVE-2023-0842"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.4.23+~cs15.4.0+dfsg-7"
                }
              ]
            }
          ],
          "package": {
            "name": "node-xml2js",
            "purl": "pkg:deb/debian/node-xml2js?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-0842.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.4.23+~cs15.4.0+dfsg-7"
                }
              ]
            }
          ],
          "package": {
            "name": "node-xml2js",
            "purl": "pkg:deb/debian/node-xml2js?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-0842.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.4.23+~cs15.4.0+dfsg-7"
                }
              ]
            }
          ],
          "package": {
            "name": "node-xml2js",
            "purl": "pkg:deb/debian/node-xml2js?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-0842.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T18:00:17.555198235Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-0842"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2023-0842"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-0842",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 454953,
  "published_at": "2023-04-05T20:15:07.493+00:00"
}