# GHSA-m58q-qq5h-mgqq: Islandora 2.0 before 2.4.1 could allow any user to upload content into a repository

> Any authenticated user can upload content to the repository regardless of permissions, allowing unauthorized data modification.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 21 Jul 2022

## What is GHSA-m58q-qq5h-mgqq?

GHSA-m58q-qq5h-mgqq is a missing authorization vulnerability in islandora/islandora, published on 21 Jul 2022. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

### Impact
This vulnerability would allow any user, regardless of permissions, to upload content into a repository. This affects installations of Islandora core 2.0 or greater.

### Patches
Upgrade immediately to the [latest release](https://github.com/Islandora/islandora/releases/tag/2.4.1) of Islandora.

### Workarounds
In lieu of an upgrade the [following module](https://github.com/Islandora/islandora_ghsa_route_fix) can be leveraged that will resolve the issue until such a time an upgrade can take place.

### For more information
If you have any questions or comments about this advisory:
* Open an issue in [Islandora](https://github.com/Islandora/islandora)
* Contact community@islandora.ca.

## Which versions are affected by GHSA-m58q-qq5h-mgqq?

2 open source packages ship an affected version, including islandora/islandora.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `islandora/islandora` | Packagist | From 2.0 | 2.4.1 |
| `islandora/islandora` | Packagist | From 2.0 | 2.4.1 |

## How do I fix GHSA-m58q-qq5h-mgqq?

Upgrade islandora/islandora to 2.4.1 or later.

## Is GHSA-m58q-qq5h-mgqq being exploited?

There is no known exploitation of GHSA-m58q-qq5h-mgqq in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-m58q-qq5h-mgqq and fix it if it is affected.

What it is: GHSA-m58q-qq5h-mgqq is a missing authorization vulnerability in islandora/islandora, published on 21 Jul 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-m58q-qq5h-mgqq in the wild and no public exploit code.

Affected packages and fixed versions:
- islandora/islandora (Packagist): affected from 2.0; fixed in 2.4.1
- islandora/islandora (Packagist): affected from 2.0; fixed in 2.4.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/GHSA-m58q-qq5h-mgqq/ (Markdown: https://insights.sbomify.com/GHSA-m58q-qq5h-mgqq/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-m58q-qq5h-mgqq

---
From sbomify Insights: https://insights.sbomify.com/GHSA-m58q-qq5h-mgqq/
Summaries are generated and may contain mistakes; the official description above is the record.
