This package currently depends on remark-parse 8.x, which itself depends on trim 0.0.1 which is vulnerable to a regexp DoS.
Remark 9+ has been rewritten and does not depend on this trim package anymore. It would probably make sense to upgrade mdx to use the latest version of Remark (though that might not be easy as the BC breaks in 9.0 might be quite big).