If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
| Software | From | Fixed in |
|---|---|---|
| python / python | - | 3.9.0 |
| python / python | 3.13.1 | 3.13.11 |
| python / python | 3.14.0 | 3.14.1 |
| python / python | 3.15.0-alpha1 | 3.15.0-alpha1.x |