weavedb-contracts 0.45.2
Amplification chr() payload suffixReferences the toString conversion method
SHA-256bc2a31413c3001afe79b69d34429d4dcfa3de52f65975e15475ec708e6608422
Also flagged by osv (MAL-2026-5192: Malicious code in weavedb-contracts (npm)) +2 more.
Evidence
31:3… this.name = name
32 this.argument = argument
33 this.stack = this.toString()
34})
35
⋯5 lines
89:41… .errors)
90 }
91}
92
93function stringizer(v, i) {
94 return i + ": " + v.toString() + "\n"
95}
96ValidatorResult.prototype.toString = function toString(res) {
⋯4 lines
218:197… {0,3}|\*)?)*\})*/iu,
219
220 // 7.3.7. JSON Pointers
221 "json-pointer": /^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,
222 "relative-json-pointer": /^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,
⋯4 lines
286:6… That means this will use the name form for some illegal forms
287 if (!key.match(/[.\s\[\]]/) && !key.match(/^[\d]/)) {
288 return "." + key
289 }
290 if (key.match(/^\d+$/)) {
291 return "[" + key + "]"
292 }
293 return "[" + JSON.stringify(key) + "]"
294})
295
⋯4 lines
380:6… ts.objectGetPath = function objectGetPath(o, s) {
381 var parts = s.split("/").slice(1)
382 var k
383 while (typeof (k = parts.shift()) == "string") {
384 var n = decodeURIComponent(k.replace(/~0/, "~").replace(/~1/g, "/"))
385 if (!(n in o)) return
386 o = o[n]
⋯6 lines
Showing the top 5 files — 7 more files (31 regions) not shown.
No evidence locations were recorded for this file. Raw result