The vulnerability is a stored Cross-Site Scripting (XSS) issue in Craft CMS. The name of an 'Entry Type' was not being properly sanitized before being displayed in the entry types list in the control panel. The provided commit cfd6ba0e2ce1a59a02d75cae6558c4ace1ab8bd4 clearly shows the fix. The file src/services/Entries.php was modified within the getTableData function. The line $label = $entryType->getUiLabel(); was changed to $label = Html::encode($entryType->getUiLabel());. This indicates that the output from getUiLabel() (the entry type name) was being used directly without encoding, and the getTableData function was the place where this unsafe operation occurred. Therefore, craft\services\Entries::getTableData is the vulnerable function that would be present in a runtime profile when the vulnerability is triggered by rendering the list of entry types.