What's wrong with this JavaScript temp file?

What's wrong with this JavaScript temp file creation in a report worker. The JavaScript code writes to a predictable path in /tmp, which can be hijacked with symlinks. In JavaScript servers this can overwrite sensitive files.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance ...

https://www.youtube.com/watch?v=-zgvBu_WXXU

Whats wrong with this JavaScript temp file? #javascriptdebugging

YouTube