Unsanitized data given to eval() is an open door for exploits, whereas lack of strong typing makes it easier for logic programming errors, due to typos or implicit conversions.
Memory corruption is just one possible attack vector.
Re:Low.js – Node.js for embedded devices
by allover on Monday September 17, 2018 @02:56PM
(#18008884)
eval() is a pretty opt-in security vuln, and there are ways of doing the equivalent in statically typed languages.
Logic errors are pretty hard to quantify, but if there're stats on vulnerabilities caused by logical errors that could only happen in languages without strong types I'd love to see them.
Meanwhile there's a whole class of vulnerabilities attributable to lack of memory safety that are pretty easily distinguished, including some of the most notorious (cloudbleed, heartbleed).
Explain how 'runtime interpretation + lack of strong typing' is significant for security.
JS is memory safe which makes it a more secure choice than e.g. C/C++.