Medium

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

  • Disclosed: 12.06.2024
  • Updated: 11.10.2026 12:18

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 info@inveniosoftware.org

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) invenio-communities >= 5.0.0, < 7.8.0, >= 3.0.0, < 4.2.2, < 2.8.11 7.8.0, 4.2.2, 2.8.11

References

CVSS score 6.3/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Weakness (CWE)
CWE-79
Platform
Python (PyPI)
Package
invenio-communities
Disclosed
12.06.2024
Updated
11.10.2026 12:18

Sources and licenses

OSV / GitHub Advisory Database - GHSA-hjx6-f647-mvf9 - CC BY 4.0

Vulnerability history: invenio-communities

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
07.2019 06.2024
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Medium 2

Disclosures per year

  1. 2019: 1
  2. 2020: 0
  3. 2021: 0
  4. 2022: 0
  5. 2023: 0
  6. 2024: 1
  7. 2025: 0
  8. 2026: 0
  1. Invenio-Communities has a Cross-Site Scripting (XSS) vulnerability in React components this entry
    Medium · 6.3 ghsa-hjx6-f647-mvf9 >= 5.0.0, < 7.8.0, >= 3.0.0, < 4.2.2, < 2.8.11 7.8.0, 4.2.2, 2.8.11
  2. Medium · 5.4 CVE-2019-1020005 < 1.0.0a20 1.0.0a20

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.