[1] https://googleprojectzero.blogspot.com/2021/12/a-deep-dive-i...
[2] https://techcrunch.com/2018/02/16/iphone-bug-telugu-unicode-...
Yes. Bugs. Bugs can be fixed.
By-design (mis)features can't be fixed. The only way to fix them is by removing the feature.
Unless you're agreeing that JS-in-PDFs is a bug, you're conflating fundamentally different issues.
Yes, removing JS support would get rid of potential security exploits. It doesn't change the fact that said exploits rely on bugs in the implementation.
Fixing other kinds of bugs is fairly straightforward. Update your toolchain, update your dependencies, use the right dependencies, avoid undefined behavior, etc. Fixing scripting issues means participating in an active arms race.
IMO it’s be nice to define a file format for PDFs main use (I think?), papers and documentation. PDF, scripting, but maybe the ability to zoom and pan figures?
PDF viewers can have a matching PDF/A mode where all non-PDF/A features are disabled.
Since they can contain code, they can carry malicious code. PDFs have, in fact, been used for exploits. Meaning that you shouldn't really trust them. Which is a shame.