{"url":"http://public2.vulnerablecode.io/api/packages/45247?format=json","purl":"pkg:pypi/transformers@4.49.0","type":"pypi","namespace":"","name":"transformers","version":"4.49.0","qualifiers":{},"subpath":"","is_vulnerable":false,"next_non_vulnerable_version":"4.53.0","latest_non_vulnerable_version":"4.53.0","affected_by_vulnerabilities":[],"fixing_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/37062?format=json","vulnerability_id":"VCID-7chd-q1tt-7fck","summary":"A vulnerability in the `preprocess_string()` function of the `transformers.testing_utils` module in huggingface/transformers version v4.48.3 allows for a Regular Expression Denial of Service (ReDoS) attack. The regular expression used to process code blocks in docstrings contains nested quantifiers, leading to exponential backtracking when processing input with a large number of newline characters. An attacker can exploit this by providing a specially crafted payload, causing high CPU usage and potential application downtime, effectively resulting in a Denial of Service (DoS) scenario.","references":[{"reference_url":"https://github.com/huggingface/transformers/commit/8cb522b4190bd556ce51be04942720650b1a3e57","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}],"url":"https://github.com/huggingface/transformers/commit/8cb522b4190bd556ce51be04942720650b1a3e57"},{"reference_url":"https://huntr.com/bounties/97b780f3-ffca-424f-ad5d-0e1c57a5bde4","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}],"url":"https://huntr.com/bounties/97b780f3-ffca-424f-ad5d-0e1c57a5bde4"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/45247?format=json","purl":"pkg:pypi/transformers@4.49.0","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:pypi/transformers@4.49.0"}],"aliases":["CVE-2025-2099","PYSEC-2025-40"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-7chd-q1tt-7fck"}],"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/packages/pkg:pypi/transformers@4.49.0"}