CVE-2021-43781
Permissions not properly checked in Invenio-Drafts-Resources
Invenio-Drafts-Resources is a submission/deposit module for Invenio, a software framework for research data management. Invenio-Drafts-Resources prior to versions 0.13.7 and 0.14.6 does not properly check permissions when a record is published. The vulnerability is exploitable in a default installation of InvenioRDM. An authenticated a user is able via REST API calls to publish draft records of other users if they know the record identifier and the draft validates (e.g. all require fields filled out). An attacker is not able to modify the data in the record, and thus e.g. cannot change a record from restricted to public. The problem is patched in Invenio-Drafts-Resources v0.13.7 and 0.14.6, which is part of InvenioRDM v6.0.1 and InvenioRDM v7.0 respectively.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
6.4
Permissions not properly checked in Invenio-Drafts-Resources
Invenio-Drafts-Resources is a submission/deposit module for Invenio, a software framework for research data management. Invenio-Drafts-Resources prior to versions 0.13.7 and 0.14.6 does not properly check permissions when a record is published. The vulnerability is exploitable in a default installation of InvenioRDM. An authenticated a user is able via REST API calls to publish draft records of other users if they know the record identifier and the draft validates (e.g. all require fields filled out). An attacker is not able to modify the data in the record, and thus e.g. cannot change a record from restricted to public. The problem is patched in Invenio-Drafts-Resources v0.13.7 and 0.14.6, which is part of InvenioRDM v6.0.1 and InvenioRDM v7.0 respectively.
- Record
CVE-2021-43781- CVSS 3.1
- 6.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - Weakness
- CWE-862
- Updated
- 2026-11-02
EUVDEUVD-2021-0102
6.4
Invenio-Drafts-Resources is a submission/deposit module for Invenio, a software framework for research data management. Invenio-Drafts-Resources prior to versions 0.13.7 and 0.14.6 does not properly check permissions when a record is published. The vulnerability is exploitable in a default installation of InvenioRDM. An authenticated a user is able via REST API calls to publish draft records of other users if they know the record identifier and the draft validates (e.g. all require fields filled out). An attacker is not able to modify the data in the record, and thus e.g. cannot change a record from restricted to public. The problem is patched in Invenio-Drafts-Resources v0.13.7 and 0.14.6, which is part of InvenioRDM v6.0.1 and InvenioRDM v7.0 respectively.
- Record
EUVD-2021-0102- CVSS 3.1
- 6.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-xr38-w74q-r8jv
5.1
Permissions not properly checked in Invenio-Drafts-Resources
Impact
Invenio-Drafts-Resources does not properly check permissions when a record is published. The vulnerability is exploitable in a default installation of InvenioRDM. An authenticated user is able via REST API calls to publish draft records of other users if they know the record identifier and the draft validates (e.g. all require fields filled out). An attacker is not able to modify the data in the record, and thus e.g. cannot change a record from restricted to public.
Details
The service's publish() method contains the following permission check:
def publish(..):
self.require_permission(identity, "publish")
However, the record should have been passed into the permission check so that the need generators have access to e.g. the record owner.
def publish(..):
self.require_permission(identity, "publish", record=record)
The bug is activated in Invenio-RDM-Records which has a need generator called RecordOwners(), which when no record is passed in defaults to allow any authenticated user:
class RecordOwners(Generator):
def needs(self, record=None, **kwargs):
if record is None:
return [authenticated_user]
# ...
Patches
The problem is patched in Invenio-Drafts-Resources v0.13.7 and 0.14.6+, which is part of InvenioRDM v6.0.1 and InvenioRDM v7.0 respectively.
You can verify the version installed of Invenio-Drafts-Resources via PIP:
cd ~/src/my-site
pipenv run pip freeze | grep invenio-drafts-resources
References
For more information
If you have any questions or comments about this advisory:
- Chat with us on Discord: https://discord.gg/8qatqBC
- Record
GHSA-xr38-w74q-r8jv- CVSS 4.0
- 5.1 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N - CVSS 3.1
- 6.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - Weakness
- CWE-862, CWE-863
- Updated
- 2026-11-02
NVD
6.4
Invenio-Drafts-Resources is a submission/deposit module for Invenio, a software framework for research data management. Invenio-Drafts-Resources prior to versions 0.13.7 and 0.14.6 does not properly check permissions when a record is published. The vulnerability is exploitable in a default installation of InvenioRDM. An authenticated a user is able via REST API calls to publish draft records of other users if they know the record identifier and the draft validates (e.g. all require fields filled out). An attacker is not able to modify the data in the record, and thus e.g. cannot change a record from restricted to public. The problem is patched in Invenio-Drafts-Resources v0.13.7 and 0.14.6, which is part of InvenioRDM v6.0.1 and InvenioRDM v7.0 respectively.
- Record
CVE-2021-43781- CVSS 3.1
- 6.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - CVSS 2.0
- 4.0 Medium
AV:N/AC:L/Au:S/C:P/I:N/A:N - Weakness
- CWE-862, CWE-863
- Updated
- 2026-11-02
OSV
4.3
Invenio-Drafts-Resources is a submission/deposit module for Invenio, a software framework for research data management. Invenio-Drafts-Resources prior to versions 0.13.7 and 0.14.6 does not properly check permissions when a record is published. The vulnerability is exploitable in a default installation of InvenioRDM. An authenticated a user is able via REST API calls to publish draft records of other users if they know the record identifier and the draft validates (e.g. all require fields filled out). An attacker is not able to modify the data in the record, and thus e.g. cannot change a record from restricted to public. The problem is patched in Invenio-Drafts-Resources v0.13.7 and 0.14.6, which is part of InvenioRDM v6.0.1 and InvenioRDM v7.0 respectively.
- Record
CVE-2021-43781- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-02
OSVGHSA-xr38-w74q-r8jv
5.1
Permissions not properly checked in Invenio-Drafts-Resources
Impact
Invenio-Drafts-Resources does not properly check permissions when a record is published. The vulnerability is exploitable in a default installation of InvenioRDM. An authenticated user is able via REST API calls to publish draft records of other users if they know the record identifier and the draft validates (e.g. all require fields filled out). An attacker is not able to modify the data in the record, and thus e.g. cannot change a record from restricted to public.
Details
The service's publish() method contains the following permission check:
def publish(..):
self.require_permission(identity, "publish")
However, the record should have been passed into the permission check so that the need generators have access to e.g. the record owner.
def publish(..):
self.require_permission(identity, "publish", record=record)
The bug is activated in Invenio-RDM-Records which has a need generator called RecordOwners(), which when no record is passed in defaults to allow any authenticated user:
class RecordOwners(Generator):
def needs(self, record=None, **kwargs):
if record is None:
return [authenticated_user]
# ...
Patches
The problem is patched in Invenio-Drafts-Resources v0.13.7 and 0.14.6+, which is part of InvenioRDM v6.0.1 and InvenioRDM v7.0 respectively.
You can verify the version installed of Invenio-Drafts-Resources via PIP:
cd ~/src/my-site
pipenv run pip freeze | grep invenio-drafts-resources
References
For more information
If you have any questions or comments about this advisory:
- Chat with us on Discord: https://discord.gg/8qatqBC
- Record
GHSA-xr38-w74q-r8jv- CVSS 4.0
- 5.1 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N - CVSS 3.1
- 6.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - Weakness
- CWE-862, CWE-863
- Updated
- 2026-11-02
OSVPYSEC-2021-836 No score
Invenio-Drafts-Resources is a submission/deposit module for Invenio, a software framework for research data management. Invenio-Drafts-Resources prior to versions 0.13.7 and 0.14.6 does not properly check permissions when a record is published. The vulnerability is exploitable in a default installation of InvenioRDM. An authenticated a user is able via REST API calls to publish draft records of other users if they know the record identifier and the draft validates (e.g. all require fields filled out). An attacker is not able to modify the data in the record, and thus e.g. cannot change a record from restricted to public. The problem is patched in Invenio-Drafts-Resources v0.13.7 and 0.14.6, which is part of InvenioRDM v6.0.1 and InvenioRDM v7.0 respectively.
- Record
PYSEC-2021-836- Updated
- 2026-11-02
OSVPYSEC-2021-837 No score
Invenio-Drafts-Resources is a submission/deposit module for Invenio, a software framework for research data management. Invenio-Drafts-Resources prior to versions 0.13.7 and 0.14.6 does not properly check permissions when a record is published. The vulnerability is exploitable in a default installation of InvenioRDM. An authenticated a user is able via REST API calls to publish draft records of other users if they know the record identifier and the draft validates (e.g. all require fields filled out). An attacker is not able to modify the data in the record, and thus e.g. cannot change a record from restricted to public. The problem is patched in Invenio-Drafts-Resources v0.13.7 and 0.14.6, which is part of InvenioRDM v6.0.1 and InvenioRDM v7.0 respectively.
- Record
PYSEC-2021-837- Updated
- 2026-11-02
OSVPYSEC-2021-838 No score
Invenio-Drafts-Resources is a submission/deposit module for Invenio, a software framework for research data management. Invenio-Drafts-Resources prior to versions 0.13.7 and 0.14.6 does not properly check permissions when a record is published. The vulnerability is exploitable in a default installation of InvenioRDM. An authenticated a user is able via REST API calls to publish draft records of other users if they know the record identifier and the draft validates (e.g. all require fields filled out). An attacker is not able to modify the data in the record, and thus e.g. cannot change a record from restricted to public. The problem is patched in Invenio-Drafts-Resources v0.13.7 and 0.14.6, which is part of InvenioRDM v6.0.1 and InvenioRDM v7.0 respectively.
- Record
PYSEC-2021-838- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
invenio-drafts-resourcesPyPI |
before 0.13.7 | 0.13.7 |
invenio-app-rdmPyPI |
before 6.0.5 | 6.0.5 |
invenio-rdm-recordsPyPI |
before 0.32.6 | 0.32.6 |
invenio-drafts-resourcesPyPI |
0.14.0 up to 0.14.6 | 0.14.6 |
invenio-rdm-recordsPyPI |
0.33.0 up to 0.33.10 | 0.33.10 |
invenio-app-rdmPyPI |
7.0.0.dev0 up to 7.0.0.dev5 | 7.0.0.dev5 |
invenio-drafts-resourcesPyPI |
before 0.13.7, plus listed versions 0.1.00.1.20.1.30.10.00.10.1 Show 45 moreShow less0.10.100.10.20.10.30.10.40.10.50.10.60.10.70.10.80.10.90.11.00.11.10.11.20.11.30.11.40.11.50.11.60.12.00.12.10.12.20.13.00.13.10.13.20.13.30.13.40.13.50.13.60.2.00.2.10.2.20.2.30.2.40.3.00.4.00.4.10.4.20.4.30.5.00.6.00.6.10.6.20.7.00.7.10.7.20.8.00.8.1 |
0.13.7 |
invenio-app-rdmPyPI |
before 6.0.5, plus listed versions 0.10.00.10.10.11.00.11.10.11.2 Show 45 moreShow less0.12.00.12.10.12.20.12.30.12.40.12.50.13.00.14.00.14.10.14.20.14.30.14.40.14.50.14.60.14.70.14.80.15.00.16.00.16.10.16.20.16.30.16.40.16.50.16.60.17.00.17.10.17.20.17.30.17.40.18.00.18.20.18.30.18.40.18.50.18.60.18.70.18.80.19.00.19.10.19.20.19.30.19.40.19.50.19.60.19.7 |
6.0.5 |
invenio-rdm-recordsPyPI |
before 0.32.6, plus listed versions 0.10.00.10.10.11.00.11.10.12.0 Show 45 moreShow less0.13.00.13.10.13.20.13.30.13.40.14.00.14.10.15.00.16.00.17.00.17.10.18.00.18.10.18.20.18.30.19.00.19.10.20.00.20.10.20.20.20.30.20.40.20.60.20.70.20.80.21.00.22.00.22.10.23.00.23.10.23.100.23.20.23.30.23.40.23.50.23.60.23.70.23.80.23.90.24.10.24.20.24.30.24.40.24.50.24.6 |
0.32.6 |
invenio-drafts-resourcesPyPI |
0.14.0 up to 0.14.6, plus listed versions 0.14.10.14.20.14.30.14.5 |
0.14.6 |
Show 5 moreShow less
| Package | Affected | Fixed |
|---|---|---|
invenio-rdm-recordsPyPI |
0.33.0 up to 0.33.10, plus listed versions 0.33.10.33.20.33.30.33.40.33.5 Show 4 moreShow less0.33.60.33.70.33.80.33.9 |
0.33.10 |
invenio-app-rdmPyPI |
7.0.0.dev0 up to 7.0.0.dev5, plus listed versions 7.0.0.dev17.0.0.dev27.0.0.dev37.0.0.dev4 |
7.0.0.dev5 |
invenio-drafts-resourcesPyPI |
before 0.13.7, 0.14.0 up to 0.14.6, plus listed versions 0.1.00.1.20.1.30.10.00.10.1 Show 45 moreShow less0.10.100.10.20.10.30.10.40.10.50.10.60.10.70.10.80.10.90.11.00.11.10.11.20.11.30.11.40.11.50.11.60.12.00.12.10.12.20.13.00.13.10.13.20.13.30.13.40.13.50.13.60.14.10.14.20.14.30.14.50.2.00.2.10.2.20.2.30.2.40.3.00.4.00.4.10.4.20.4.30.5.00.6.00.6.10.6.20.7.0 |
0.13.70.14.6 |
invenio-app-rdmPyPI |
before 6.0.5, 7.0.0.dev0 up to 7.0.0.dev5, plus listed versions 0.10.00.10.10.11.00.11.10.11.2 Show 45 moreShow less0.12.00.12.10.12.20.12.30.12.40.12.50.13.00.14.00.14.10.14.20.14.30.14.40.14.50.14.60.14.70.14.80.15.00.16.00.16.10.16.20.16.30.16.40.16.50.16.60.17.00.17.10.17.20.17.30.17.40.18.00.18.20.18.30.18.40.18.50.18.60.18.70.18.80.19.00.19.10.19.20.19.30.19.40.19.50.19.60.19.7 |
6.0.57.0.0.dev5 |
invenio-rdm-recordsPyPI |
before 0.32.6, 0.33.0 up to 0.33.10, plus listed versions 0.10.00.10.10.11.00.11.10.12.0 Show 45 moreShow less0.13.00.13.10.13.20.13.30.13.40.14.00.14.10.15.00.16.00.17.00.17.10.18.00.18.10.18.20.18.30.19.00.19.10.20.00.20.10.20.20.20.30.20.40.20.60.20.70.20.80.21.00.22.00.22.10.23.00.23.10.23.100.23.20.23.30.23.40.23.50.23.60.23.70.23.80.23.90.24.10.24.20.24.30.24.40.24.50.24.6 |
0.32.60.33.10 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-43781 is a medium vulnerability (CVSS 6.4) in Inveniosoftware Invenio-drafts-resources, published December 6, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.68%, the 52nd percentile. Fixed in invenio-drafts-resources 0.13.7.
References
github.com/inveniosoftware/invenio-drafts-resources/security/advisories/GHSA-xr38-w74q-r8jv
github.com/inveniosoftware/invenio-drafts-resources/commit/039b0cff1ad4b952000f4d8c3a93f347108b6626
nvd.nist.gov/vuln/detail/CVE-2021-43781
github.com/pypa/advisory-database/tree/main/vulns/invenio-app-rdm/PYSEC-2021-837.yaml
github.com/pypa/advisory-database/tree/main/vulns/invenio-drafts-resources/PYSEC-2021-836.yaml
github.com/advisories/GHSA-xr38-w74q-r8jv
Left out here: 395 versions. The JSON record has them.