The vulnerability exists within the compileSingleResultRow function of the TYPO3\CMS\IndexedSearch\Controller\SearchController class. This function is responsible for rendering individual search results. The core of the issue is that page titles, which can be controlled by an editor, were being included in the search result output without proper HTML encoding. The provided patches clearly show the addition of the htmlspecialchars() function call to the $title variable. This change ensures that any HTML characters within the title are properly escaped, preventing the browser from interpreting them as executable code. The vulnerability is triggered when a user views the search results page containing a maliciously crafted page title. Therefore, the compileSingleResultRow function is the exact location of the vulnerability and would be present in any runtime profile during exploitation.