Vulnerabilities/

@digitalocean/do-markdownit has Type Confusion vulnerability

Severity:
Medium

Description

A type confusion issue exists in the @digitalocean/do-markdownit package. In the callout and fence_environment plugins, the allowedClasses and allowedEnvironments options are expected to be arrays of strings. If these options are provided as a single string, the code applies .includes directly on the string, resulting in substring matching instead of membership checks against an array.

Recommendation

No fix is available yet. Followings are affected versions:

References

Related Issues

Tags:
npm
@digitalocean/do-markdownit
Anything's wrong? Let us know Last updated on September 22, 2025

This issue is available in SmartScanner Professional

See Pricing