You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: check the format of the index of each attachment
A specially crafted packet could be incorrectly decoded.
Example:
```js
const decoder = new Decoder();
decoder.on("decoded", (packet) => {
console.log(packet.data); // prints [ 'hello', [Function: splice] ]
})
decoder.add('51-["hello",{"_placeholder":true,"num":"splice"}]');
decoder.add(Buffer.from("world"));
```
As usual, please remember not to trust user input.
2 commit comments
gitDk70 commentedon May 24, 2023
security fix
darrachequesne commentedon May 24, 2023
@gitDk70 this is indeed a security fix, here's the associated advisory: GHSA-qm95-pgcg-qqfq