Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-8mf9-rmgw-33qc

Опубликовано: 22 окт. 2025
Источник: github
Github: Прошло ревью
CVSS3: 5.4

Описание

Hugging Face Smolagents XPath injection vulnerability in the search_item_ctrl_f function

Hugging Face Smolagents version 1.20.0 contains an XPath injection vulnerability in the search_item_ctrl_f function located in src/smolagents/vision_web_browser.py. The function constructs an XPath query by directly concatenating user-supplied input into the XPath expression without proper sanitization or escaping. This allows an attacker to inject malicious XPath syntax that can alter the intended query logic. The vulnerability enables attackers to bypass search filters, access unintended DOM elements, and disrupt web automation workflows. This can lead to information disclosure, manipulation of AI agent interactions, and compromise the reliability of automated web tasks. The issue is fixed in version 1.22.0.

Пакеты

Наименование

smolagents

pip
Затронутые версииВерсия исправления

< 1.22.0

1.22.0

EPSS

Процентиль: 14%
0.00045
Низкий

5.4 Medium

CVSS3

Дефекты

CWE-643

Связанные уязвимости

CVSS3: 5.4
nvd
4 месяца назад

Hugging Face Smolagents version 1.20.0 contains an XPath injection vulnerability in the search_item_ctrl_f function located in src/smolagents/vision_web_browser.py. The function constructs an XPath query by directly concatenating user-supplied input into the XPath expression without proper sanitization or escaping. This allows an attacker to inject malicious XPath syntax that can alter the intended query logic. The vulnerability enables attackers to bypass search filters, access unintended DOM elements, and disrupt web automation workflows. This can lead to information disclosure, manipulation of AI agent interactions, and compromise the reliability of automated web tasks. The issue is fixed in version 1.22.0.

CVSS3: 5.4
fstec
5 месяцев назад

Уязвимость функции search_item_ctrl_f() файла src/smolagents/vision_web_browser.py фреймворка автономных ИИ-агентов Hugging Face Smolagents, позволяющая нарушителю получить несанкционированный доступ к защищаемой информации

EPSS

Процентиль: 14%
0.00045
Низкий

5.4 Medium

CVSS3

Дефекты

CWE-643