pymatgen is vulnerable to Regular Expression Denial of Service (ReDoS)
30
Low Risk
Affected versions of pymatgen are vulnerable to an exponential regular-expression denial-of-service (ReDoS) in GaussianInput.from_string. An attacker who can supply crafted input to that method can trigger catastrophic backtracking in the library’s regex, causing excessive CPU usage and potentially rendering the process unresponsive.
You are affected if you are using a version that falls within the vulnerable range.
pymatgen is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 0.0.1 - 2025.10.6.
Upgrade the pymatgen library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant