Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
MEDIUM severity

GHSA-hjx6-f647-mvf9 invenio-communities

MEDIUMFix: inveniosoftware/invenio-communities@4424dd5

GHSA-hjx6-f647-mvf9 is a medium-severity (CVSS 6.3) vulnerability in invenio-communities. A fix is available for invenio-communities — see the affected versions and patch details below.

Invenio-Communities has a Cross-Site Scripting (XSS) vulnerability in React components

Published
Jun 12, 2024
Updated
Nov 29, 2024
Affected
3 pkgs
Patched
3 / 3
Exploits
None indexed
Exploitation data as of Nov 29, 2024 · OSV.dev, FIRST.org (EPSS)

Real-World Exposure

3 pkgs affected
🐍invenio-communities🐍invenio-communities🐍invenio-communities

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

Description

Impact

We have identified a Cross-Site Scripting (XSS) vulnerability within certain React components related to community members in the Invenio-Communities module. This vulnerability enables a user to inject a script tag into the Affiliations field during the account registration process. The malicious script is executed when the user creates a new community and is listed as a public member.

The script is triggered whenever any user visits the Members section of any community that includes the compromised user. This can potentially allow the attacker to access personal information, such as cookies, of the visiting user.

Patches

The problem has been patched in v7.8.0. Patches also have been backported in versions v4.2.2 and v2.8.11.

Credits

Thanks to Twitter.com/AliGoodLuck11 for reporting the vulnerability with a detailed description on how to reproduce it!

For more information

If you have any questions or comments about this advisory:

Email us at [email protected]

Affected Packages

3 total 3 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIinvenio-communities5.0.0&&< 7.8.07.8.0pip install --upgrade 'invenio-communities==7.8.0'
🐍PyPIinvenio-communities3.0.0&&< 4.2.24.2.2pip install --upgrade 'invenio-communities==4.2.2'
🐍PyPIinvenio-communitiesall versions2.8.11pip install --upgrade 'invenio-communities==2.8.11'

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for invenio-communities, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update invenio-communities to 7.8.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-hjx6-f647-mvf9 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-hjx6-f647-mvf9 can be triaged on real exposure rather than presence alone.

Tailored to GHSA-hjx6-f647-mvf9. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

# Impact We have identified a Cross-Site Scripting (XSS) vulnerability within certain React components related to community members in the Invenio-Communities module. This vulnerability enables a user to inject a script tag into the Affiliations field during the account registration process. The malicious script is executed when the user creates a new community and is listed as a public member. The script is triggered whenever any user visits the Members section of any community that includes the compromised user. This can potentially allow the attacker to access personal information, such a
O3 Security · Impact-Aware SCA

Is GHSA-hjx6-f647-mvf9 in your dependencies?

O3 Security finds GHSA-hjx6-f647-mvf9 across PyPI dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.

GHSA-hjx6-f647-mvf9: invenio (Medium 6.3) | O3 Security