# CVE-2026-133708: diffpy.structure before 3.5.1 Code Execution via eval in get_symop CIF Parsing


- **Severity:** High 8.5 (`CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Fix available:** No
- **Published:** 20 Nov 2026
- **Updated:** 20 Nov 2026
- **Also known as:** GHSA-3vfj-3hfg-rm35

## What is CVE-2026-133708?

CVE-2026-133708 is a high-severity vulnerability in diffpy.structure, published on 20 Nov 2026. 

### Official description

diffpy.structure before 3.5.1 contains a code execution vulnerability that allows attackers to run Python code by supplying crafted CIF symmetry operations passed to eval() in get_symop(). Attackers can embed expressions in the _space_group_symop_operation_xyz or _symmetry_equiv_pos_as_xyz loop to execute code with victim privileges when the CIF file is parsed locally.

Weakness: CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code)

## Which versions are affected by CVE-2026-133708?

1 open source package ship an affected version, including diffpy.structure.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `diffpy.structure` | PyPI | `pkg:pypi/diffpy.structure` | All versions | 3.5.1 |

## How do I fix CVE-2026-133708?

Upgrade diffpy.structure to 3.5.1 or later.

## Is CVE-2026-133708 being exploited?

There is no known exploitation of CVE-2026-133708 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-133708 and fix it if it is affected.

What it is: CVE-2026-133708 is a high-severity vulnerability in diffpy.structure, published on 20 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-133708 in the wild and no public exploit code.

Affected packages and fixed versions:
- diffpy.structure (PyPI): affected all versions; fixed in 3.5.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-133708/ (Markdown: https://insights.sbomify.com/CVE-2026-133708/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-133708
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-133708
- OSV: https://osv.dev/vulnerability/CVE-2026-133708

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-133708/
Summaries are generated and may contain mistakes; the official description above is the record.
