Skip to content

Old versions have been yanked? #1075

Closed
Closed

Description

@martynp

Just wanted to check this is correct - everything other than the latest version (v9.0.3) has been yanked on crates.io.

Activity

  1. Pr0methean commented on Oct 16, 2026

    @Pr0methean
    Member

    That's correct; it's because of GHSA-vv5m-jxxh-4627, GHSA-4v9h-p7m9-rh26, GHSA-4684-h2q9-2vcp and other security issues that will be published later this month.

  2. tversteeg commented on Oct 16, 2026

    @tversteeg

    @Pr0methean Maybe it's a good idea to pin this issue? I assume a lot of people will look for the reason for the yanked versions, as I did.

  3. achapkowski commented on Oct 16, 2026

    @achapkowski

    Is the yank a bit extreme, it literally breaks multiple packages now

  4. added a commit that references this issue on Oct 16, 2026
  5. Pr0methean commented on Oct 16, 2026

    @Pr0methean
    Member

    Given the severity of some of the security issues, and the fact that crates.io said over 90% of the downloads were still of vulnerable versions, it seemed necessary. The current security policy calls for yanking all versions with known security issues before publishing those issues, a detail I'd forgotten about.

  6. aleksuss commented on Oct 16, 2026

    @aleksuss

    Any plans to release patch updates for older major versions to unblock affected builds?

  7. 22 remaining items

  8. Pr0methean commented on Oct 18, 2026

    @Pr0methean
    Member

    Update: all versions are now unyanked, and I've repealed the policy that called for yanking known-insecure versions. I wouldn't have expected that policy to cause serious disruptions, since I'd applied it before after GHSA-94vh-gphv-8pm8 with only one minor complaint from someone who ultimately agreed it was a good idea, but apparently it did.

    But backports will have to wait a while, since we've had security issues reported even against 9.0.5. We need to first manage to have one release without known vulnerabilities (including ones that aren't yet public) before we can consider the extra effort to produce more than one.

  9. unpinned this issue on Oct 18, 2026
  10. added a commit that references this issue on Oct 18, 2026
  11. Turbo87 commented on Oct 19, 2026

    @Turbo87

    but our oncall spent half a night trying to unblock the builds and a 1/3 of the company dealing with this for hours on Friday morning is not a productive process

    @krvukic out of curiosity, did you not commit your Cargo.lock file to version control? yanking does not delete the versions and if they are pinned in a lockfile then cargo can still download them.

  12. added a commit that references this issue on Oct 20, 2026
  13. krvukic commented on Oct 20, 2026

    @krvukic

    24. > but our oncall spent half a night trying to unblock the builds and a 1/3 of the company dealing with this for hours on Friday morning is not a productive process

     [@krvukic](https://github.com/krvukic) out of curiosity, did you not commit your `Cargo.lock` file to version control? yanking does not delete the versions and if they are pinned in a lockfile then cargo can still download them.
    

    @Turbo87 We build Rust with Bazel and rules_rust. We don't use Cargo for builds, instead Bazel invokes rustc directly.
    The reason this still broke the builds is that Cargo resolves versions, inside rules_rust's crate module extension:

    # MODULE.bazel
    crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate")
    crate.spec(package = "zip", version = "0.6.6")
    crate.from_specs()
    use_repo(crate, "crates")

    And the resolution gets stored in MODULE.bazel.lock. So the lockfile exists, but it doesn't get the same permission to ignore yanks.

    That said, after this, we did add Cargo.lock to the process, which should prevent this problem in the future.

    crate.from_specs(cargo_lockfile = "//bazel/cargo:crates.Cargo.Bazel.lock")
  14. krvukic commented on Oct 20, 2026

    @krvukic

    @Pr0methean I just read your Reddit post and I'm really sorry for being rough with my first message here 😔 . Software all around is getting enshittified, had to deal with this on my day off, and I misappropriated the pent up anger. Based on the post, working on this sounds like more stress than many would want even if it was paid. I'm sorry for making it worse, I hope you find a good solution for it and a new job that you'll like ❤️

  15. added a commit that references this issue on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions