WASM started making is way into browsers just as we removed the last remnants of Java Applets. Now we have too re-secure a whole new stack.
it's also why WASM is so slow compared to native executables; security guarantees have a performance cost.
https://www.usenix.org/conference/usenixsecurity20/presentat...
https://www.usenix.org/conference/usenixsecurity21/presentat...
my point stands though. WASM is not ActiveX where the whole applet has admin permission on the computer.
More devs should get security trainings.
On this specific case, it is quite a big deal to add write and execute controls to the WASM memory, so it requires further justification than "I can do stack underflow attacks on my C code". Even though "I can do stack underflow attacks on my C code" is relevant information.