But it does nothing to prevent JS in its payload.
There is no "JavaScript" in JMAP in the sense that it's supported by the protocol, and the specification explicitly warns against email clients interpreting JavaScript.
Potential and actual vulnerabilities explodes, like the chronic problems of Microsoft Macros.