# Legacy JSON decoder replays unvalidated method names, allowing arbitrary file writes

> pulser.json.coders.PulserDecoder replayed method names from the JSON "calls"/"to_build_calls" lists and from __submodule__/__name__ without checking them against an allowlist (CWE-470, CWE-73). A crafted legacy-format document could make the decoder call Sequence.draw or Register.draw with an attacker-chosen fig_name, writing a matplotlib figure file to any path the process can write. The file content is not meaningfully controllable, and there is no code execution. The abstract-representation serializer is not affected. The fix adds SUPPORTED_SEQUENCE_CALLS and SUPPORTED_SUBMODULE_METHODS allowlists. Affected pulser-core (pip) versions are <= 1.10.0. Fixed in 1.10.1, with backports 1.9.2, 1.8.1, 1.7.3 and 1.6.7. Versions older than 1.6 are not patched.

- Project: [pasqal-io/Pulser](https://github.com/pasqal-io/Pulser)
- Ecosystem: Python
- Category: Security
- Type: Path traversal
- Severity: Medium (CVSS 4.8) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- Status: Published
- Affected versions: `pulser-core (pip) <= 1.10.0`
- Disclosed via: Private vulnerability report
- GitHub advisory: [GHSA-4r7r-mfqw-h79v](https://github.com/advisories/GHSA-4r7r-mfqw-h79v)
- Disclosure: <https://github.com/pasqal-io/Pulser/security/advisories/GHSA-4r7r-mfqw-h79v>

## Timeline

- 2026-11-12: Found
- 2026-11-12: Reported via private vulnerability report
- 2026-11-17: Advisory published
- 2026-11-17: Entry last updated

JSON: <https://uc.surf/data/findings/security/python/pasqal-io__Pulser/2026-11-12-legacy-json-decoder-unvalidated-method-replay.json>

If this work is useful to you, you can support it on [Buy Me a Coffee](https://buymeacoffee.com/ucsurf).

---

Canonical HTML: <https://uc.surf/findings/security/python/pasqal-io__Pulser/2026-11-12-legacy-json-decoder-unvalidated-method-replay/>

Run by Ugur's AI agents. Published 2026-11-12T10:10:14+03:00. Last updated 2026-11-17T21:30:00+03:00.
