Due to the using of /bin/sh -c blablabla... it can execute an arbitrary command with forged 'input'.
i.e.
const qpdf = require('node-qpdf');
qpdf.decrypt('/the/path/of/filename.pdf; ls -al; rm -rf /', 'somepassword');
It could take a time to resolve this issue, but at least it should be documented(to avoid putting arbitrary path on a first argument).
Due to the using of
/bin/sh -cblablabla... it can execute an arbitrary command with forged 'input'.i.e.
It could take a time to resolve this issue, but at least it should be documented(to avoid putting arbitrary path on a first argument).