Subscribe free
Morning Merge Python · Thursday, December 3, 20264 min read

"GitHub blocks pull_request_target; fickling misses imports"

"Also: Datasette Charts, a CredSweeper Action RCE, and three malicious PyPI packages"

GitHub now blocks pull_request_target by default in affected public repos, so check your fork workflows. Fickling's pickle scanner also misses dangerous imports, so don't trust a clean verdict.

The main thing

A teal jointed mechanical snake coils around a gate post and holds the striped barrier arm down in front of a small delivery truck, while box trucks drive past a factory inside the fence.

GitHub Actions now blocks pull_request_target by default in affected public repositories. Since Wednesday, December 2, 2026, pull_request_target workflows don't run in affected public repositories unless an applicable GitHub Actions event policy explicitly allows them. GitHub announced this on November 2, and the date held.

It covers affected public repositories on GitHub Free, GitHub Team and GitHub Enterprise Cloud. Private and internal repositories aren't affected, and an event policy you've already configured still applies.

The reason is the trigger's design. pull_request_target runs in the base repository's context and can read its secrets, so a workflow that runs code from a fork in that context can leak those secrets or compromise your build. That's the feature and the bug in one sentence.

What to do: if you maintain a public Python project that responds to pull requests from forks, check Policy insights for blocked workflow runs. Move workflows to pull_request where that works.

If one really needs pull_request_target, create or update an event policy that allows it, scoped to specific workflow files, and only after confirming it won't run untrusted pull request code with access to secrets or a privileged token.

The same day brought a good example of how far an untrusted CI input can travel. Samsung's CredSweeper GitHub Action allows command execution through --log_config (GHSA-q5pw-pp6j-mvfc, CVSS 7.1).

The Action passes user-controlled inputs to the CredSweeper CLI as raw arguments. Someone who can influence those inputs can add --log_config, and CredSweeper hands the attacker's logging configuration to Python's logging.config.dictConfig(...). The () key in that config builds objects from callable factories, so it ends as arbitrary command execution on the runner. The advisory we have names no fixed version.

The Python lesson outlasts this Action: a dictConfig dictionary is code, so never load one you didn't write.

Check your pickle scanner

A teal jointed mechanical snake wearing goggles holds a magnifying glass up to a pickle jar on a roller conveyor, revealing a coiled spring and a small gear hidden among the pickles.

Fickling's safety check misses three dangerous standard-library imports (CVE-2026-14534, rated high). _posixsubprocess, site and atexit were missing from UNSAFE_IMPORTS. The reporter shows check_safety() returning LIKELY_SAFE with 0 findings on 0.1.10 for a pickle using _posixsubprocess.fork_exec, a C-level process spawner.

The OvertlyBadEvals pass skips these modules because they're on the standard-library likely-safe list, and UnsafeImports didn't list them. The report says this is the same root cause as CVE-2026-22607. The fix commit adds all three to the blocklist; the advisory text names no release.

Fickling's MLAllowlist pass can miss non-allowlisted imports (CVE-2026-14535, rated high). You're affected if MLAllowlist runs after another pass in the same analysis context: it then fails to flag imports that aren't on the allowlist. The fix makes MLAllowlist work again and makes it opt-in, as originally intended.

Read that part twice. If you scan ML pickles against an import allowlist, upgrading isn't enough: pass MLAllowlist in the analyzer parameter of check_safety(), or the check you were counting on doesn't run.

Two gaps in one night, one of them a repeat of an earlier root cause, is the pattern to notice. A scanner tells you a pickle looks safe. It can't tell you it is, so keep untrusted pickles out of pickle.load regardless of the verdict.

Try this

A teal jointed mechanical snake grips a tall white block at the end of a row of blocks of different heights that form a bar chart, next to a map table and a small grid of square tiles.

Datasette Charts suggests charts from the shape of your data. It's a brand new Datasette plugin and day 2 of Simon Willison's Datasette Advent series. His video demo takes iNaturalist sightings of brown pelicans through maps, line charts, bar charts, calendar heatmaps and box charts.

If you already publish a SQLite file with Datasette, that's a cheap way to see what's in it before writing any pandas.

Datasette 1.0a47 lets you reorder relationship columns. Incoming many-to-one rows now show on the table page the same way as many-to-many rows. You can mix relationship columns in with the regular columns instead of having them always come last, and on desktop you drag columns into place rather than using a separate ordering modal.

The new order is reflected in the URL, so a useful layout is shareable. It's still an alpha.

Patch brief

Advisories flag three malicious PyPI packages from the "Hades" wave. GitHub published entries on December 2, 2026 for mrbios, magique-ai and magique.

The releases themselves are older: the advisories say malicious phantom releases were published to PyPI on June 8, 2026 using stolen credentials, as part of the Shai-Hulud supply-chain campaign.

On import, each runs a bundled JavaScript payload through the Bun runtime that harvests and exfiltrates credentials and tries to spread. The new part is the catalog entry. If any of the three shows up in a lockfile or environment you own, treat that machine's credentials as exposed and check the indicators the advisories link.

Check Policy insights on your public repositories before the next fork pull request finds the block for you.

← All Morning Merge Python issues

Get this in your inbox every morning.

Free. Five minutes. Unsubscribe in one click.

Subscribe free →