r/javascript • • Feb 08 '23

Software Security Report Finds JavaScript Applications Have Fewer Flaws Than Java and .NET

https://www.infoq.com/news/2023/02/veracode-software-security/
565 Upvotes

124 comments sorted by

View all comments

Show parent comments

1

u/arcytech77 Feb 09 '23

I am saying do not do this:

let juicy_target = 'console.log("hello world")'
thirdPartyFunction()
eval(juicy_target)

Invoking thirdPartyFunction could potentially have side affects on the local variable juicy_target.