Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions data/platform_releases/opam/2026-07-09-opam-2-5-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
title: "opam 2.5.2"
authors: [
"Raja Boujbel",
"Kate Deplaix",
"Nathan Rebours",
"David Allsopp",
]
versions: ["2.5.2"]
tags: [opam, platform]
github_release_tags: [2.5.2]
---

_Feedback on this post is welcomed on [Discuss](https://discuss.ocaml.org/t/ann-opam-2-5-2/18338)!_

We are pleased to announce the release of opam 2.5.2 fixing a security issue ([OSEC-2026-10](https://github.com/ocaml/security-advisories/blob/main/advisories/2026/OSEC-2026-10.md)) and other minor things.

We advise everyone to upgrade. Please read on for installation and upgrade instructions.


Check failure on line 20 in data/platform_releases/opam/2026-07-09-opam-2-5-2.md

View workflow job for this annotation

GitHub Actions / lint

Multiple consecutive blank lines

data/platform_releases/opam/2026-07-09-opam-2-5-2.md:20 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.41.0/doc/md012.md
## Security fix


Check failure on line 23 in data/platform_releases/opam/2026-07-09-opam-2-5-2.md

View workflow job for this annotation

GitHub Actions / lint

Multiple consecutive blank lines

data/platform_releases/opam/2026-07-09-opam-2-5-2.md:23 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.41.0/doc/md012.md
* [OSEC-2026-10](https://osv.dev/vulnerability/OSEC-2026-10) / CVE-2026-57825: Fix a bug that allowed a package to install files anywhere on the system using a symlink to an external directory without warning the user and asking for their permission ([#7005](https://github.com/ocaml/opam/pull/7005))

Distributions maintainers that have not already done so, are invited to either upgrade their opam package to 2.5.2 or backport the fix. For any questions please send an email to the authors of this here blog post as listed above.


Check failure on line 28 in data/platform_releases/opam/2026-07-09-opam-2-5-2.md

View workflow job for this annotation

GitHub Actions / lint

Multiple consecutive blank lines

data/platform_releases/opam/2026-07-09-opam-2-5-2.md:28 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.41.0/doc/md012.md
## Other changes

* Re-allow `..` in `.install` files, partially reverting 2.5.1's [#6898](https://github.com/ocaml/opam/pull/6898) ([#7009](https://github.com/ocaml/opam/pull/7009), [ocaml/dune#14393](https://github.com/ocaml/dune/issues/14393))


Check failure on line 33 in data/platform_releases/opam/2026-07-09-opam-2-5-2.md

View workflow job for this annotation

GitHub Actions / lint

Multiple consecutive blank lines

data/platform_releases/opam/2026-07-09-opam-2-5-2.md:33 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.41.0/doc/md012.md
## Try it!

Check failure on line 34 in data/platform_releases/opam/2026-07-09-opam-2-5-2.md

View workflow job for this annotation

GitHub Actions / lint

Trailing punctuation in heading

data/platform_releases/opam/2026-07-09-opam-2-5-2.md:34:10 MD026/no-trailing-punctuation Trailing punctuation in heading [Punctuation: '!'] https://github.com/DavidAnson/markdownlint/blob/v0.41.0/doc/md026.md

The upgrade instructions are unchanged:

1. Either from binaries: run

For Unix systems
```

Check failure on line 41 in data/platform_releases/opam/2026-07-09-opam-2-5-2.md

View workflow job for this annotation

GitHub Actions / lint

Fenced code blocks should have a language specified

data/platform_releases/opam/2026-07-09-opam-2-5-2.md:41 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"] https://github.com/DavidAnson/markdownlint/blob/v0.41.0/doc/md040.md
bash -c "sh <(curl -fsSL https://opam.ocaml.org/install.sh) --version 2.5.2"
```
or from PowerShell for Windows systems
```

Check failure on line 45 in data/platform_releases/opam/2026-07-09-opam-2-5-2.md

View workflow job for this annotation

GitHub Actions / lint

Fenced code blocks should have a language specified

data/platform_releases/opam/2026-07-09-opam-2-5-2.md:45 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"] https://github.com/DavidAnson/markdownlint/blob/v0.41.0/doc/md040.md
Invoke-Expression "& { $(Invoke-RestMethod https://opam.ocaml.org/install.ps1) } -Version 2.5.2"
```
or download manually from [the Github "Releases" page](https://github.com/ocaml/opam/releases/tag/2.5.2) to your PATH.

2. Or from source, manually: see the instructions in the [README](https://github.com/ocaml/opam/tree/2.5.2#compiling-this-repo).

Check failure on line 50 in data/platform_releases/opam/2026-07-09-opam-2-5-2.md

View workflow job for this annotation

GitHub Actions / lint

Ordered list item prefix

data/platform_releases/opam/2026-07-09-opam-2-5-2.md:50:1 MD029/ol-prefix Ordered list item prefix [Expected: 1; Actual: 2; Style: 1/1/1] https://github.com/DavidAnson/markdownlint/blob/v0.41.0/doc/md029.md


Check failure on line 52 in data/platform_releases/opam/2026-07-09-opam-2-5-2.md

View workflow job for this annotation

GitHub Actions / lint

Multiple consecutive blank lines

data/platform_releases/opam/2026-07-09-opam-2-5-2.md:52 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.41.0/doc/md012.md
You should then run:
```

Check failure on line 54 in data/platform_releases/opam/2026-07-09-opam-2-5-2.md

View workflow job for this annotation

GitHub Actions / lint

Fenced code blocks should have a language specified

data/platform_releases/opam/2026-07-09-opam-2-5-2.md:54 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"] https://github.com/DavidAnson/markdownlint/blob/v0.41.0/doc/md040.md
opam init --reinit -ni
```


Please report any issues to [the bug-tracker](https://github.com/ocaml/opam/issues).

Happy hacking!
Loading