newman -v): 4.5.6$ cat package.json
{
"dependencies": {
"newman": "^4.5.6"
}
}
$ npm audit
=== npm audit security report ===
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Manual Review β
β Some vulnerabilities require your attention to resolve β
β β
β Visit https://go.npm.me/audit-guide for additional guidance β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β High β Arbitrary Code Execution β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Package β handlebars β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Patched in β >=4.5.2 β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Dependency of β newman β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Path β newman > postman-runtime > handlebars β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β More info β https://npmjs.com/advisories/1316 β
βββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β High β Arbitrary Code Execution β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Package β handlebars β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Patched in β >=4.5.3 β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Dependency of β newman β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Path β newman > postman-runtime > handlebars β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β More info β https://npmjs.com/advisories/1324 β
βββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β High β Prototype Pollution β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Package β handlebars β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Patched in β >=4.5.3 β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Dependency of β newman β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Path β newman > postman-runtime > handlebars β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β More info β https://npmjs.com/advisories/1325 β
βββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
found 3 high severity vulnerabilities in 357 scanned packages
3 vulnerabilities require manual review. See the full report for details.
Please fix this!
Looks like this is fixed in postman-runtime version 7.21.0
@markdreyer dunno about postman-runtime, this is about newman package:
$ npm i -S newman
+ [email protected]
added 160 packages from 196 contributors and audited 357 packages in 4.648s
found 3 high severity vulnerabilities # <-------- !
run `npm audit fix` to fix them, or `npm audit` for details
If you read the dependency chain, you would see:
newman > postman-runtime > handlebars
I don't maintain newman, I'm just a guy trying to help you out and tell you the version that fixed it, but thanks for the thumbs down.
@markdreyer is right. Weβve updated the underlying package and will upgrade Newman soon.
Please note that npm audit failure does not imply that newman is vulnerable. In most cases, the vulnerability of the underlying package is not exploitable via newman because of the way newman uses the package.
@shamasis sure but our automated tests fail because we run npm audit which eventually fails. Actually, its easy enough to run npm audit as part of CI - would you accept a PR on adding that to TravisCI?
@anishkny I completely understand that. Weβve seen a number of newman users choose to run npm audit as part of CI. But since, we cannot blind update every package that is updated or is flagged for security without actually verifying if the update isnβt breaking existing features, adding it to CI is more of a noise for us. There are dedicated individuals deeply looking into security aspects of newman and its dependencies and they havenβt managed to exploit them with any significant CVSS score.
We do not want to be in a situation where a three level or four level deep dependency has a non-exploitable security fix and the maintainers of packages wonβt entertain us requesting to patch their repositories without really understanding the security aspects.
If youβve discovered exploits of npm security audit on newman, please let us know. Until then, we will patch it as part of our next maintenance release, which, I think is a couple of weeks from now. (@codenirvana can provide more accurate date.)
@shamasis thanks - thats good enough for me - please close this issue when its patched to let us know! Cheers! (and by the way absolutely love Postman and esp. newman keep up the great work - sorry if I came off as angry haha)
Fixed in Newman v4.5.7.
Most helpful comment
Please fix this!