Description
The issue occurs because tagName user input is formatted inside the exec function is executed without any checks.
Remediation
References
https://snyk.io/vuln/SNYK-JS-MVERSION-573174
https://github.com/418sec/huntr/pull/102
https://github.com/mikaelbr/mversion/commit/b7a8b32600e60759a7ad3921ec4a2750bf173482
Related Vulnerabilities
CVE-2021-4307 Vulnerability in npm package baobab
CVE-2021-23382 Vulnerability in npm package postcss
CVE-2022-37616 Vulnerability in maven package org.webjars.npm:xmldom__xmldom
CVE-2023-0835 Vulnerability in npm package markdown-pdf
CVE-2021-44521 Vulnerability in maven package org.apache.cassandra:cassandra-all