Description
In the @digitalocean/do-markdownit package through 1.16.1 (in npm), the callout and fence_environment plugins perform .includes substring matching if allowedClasses or allowedEnvironments is a string (instead of an array).
Problem types
CWE-843 Access of Resource Using Incompatible Type ('Type Confusion')
Product status
Any version
References
gist.github.com/...rtshadow/dd19665f1f51a4e3c7a766e70c9eafd0
github.com/digitalocean/do-markdownit
gist.github.com/...rtshadow/dd19665f1f51a4e3c7a766e70c9eafd0
www.npmjs.com/package/@digitalocean/do-markdownit