The issue occurs because tagName user input is formatted inside the exec function is executed without any checks.
{
"severity": "MODERATE",
"cwe_ids": [
"CWE-78"
],
"nvd_published_at": "2020-07-01T17:15:00Z",
"github_reviewed_at": "2021-05-11T19:56:27Z",
"github_reviewed": true
}