{"answers":{"affected":"6 open source packages ship an affected version, including invenio-communities.","exploited":"There is no known exploitation of GHSA-hjx6-f647-mvf9 in the wild and no public exploit code.","fix":"Upgrade invenio-communities to a fixed version for your release line: 2.8.11, 4.2.2 or 7.8.0.","what":"GHSA-hjx6-f647-mvf9 is a cross-site scripting vulnerability in invenio-communities, published on 12 Jun 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-hjx6-f647-mvf9 and fix it if it is affected.\n\nWhat it is: GHSA-hjx6-f647-mvf9 is a cross-site scripting vulnerability in invenio-communities, published on 12 Jun 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-hjx6-f647-mvf9 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- invenio-communities (PyPI): affected all versions; fixed in 2.8.11\n- invenio-communities (PyPI): affected all versions; fixed in 2.8.11\n- invenio-communities (PyPI): affected from 3.0.0; fixed in 4.2.2\n- invenio-communities (PyPI): affected from 3.0.0; fixed in 4.2.2\n- invenio-communities (PyPI): affected from 5.0.0; fixed in 7.8.0\n- invenio-communities (PyPI): affected from 5.0.0; fixed in 7.8.0\n\nTask:\n1. 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.\n2. 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.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-hjx6-f647-mvf9/ (Markdown: https://insights.sbomify.com/GHSA-hjx6-f647-mvf9/index.md)","id":"GHSA-hjx6-f647-mvf9","markdown":"https://insights.sbomify.com/GHSA-hjx6-f647-mvf9/index.md","name":"GHSA-hjx6-f647-mvf9","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Invenio Communities module","requires_auth":"low_privilege","summary":"Attackers can inject scripts via affiliation fields to steal cookies from users viewing community members, requiring an upgrade to patched versions.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"# Impact\n\nWe 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.\n\nThe 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.\n\n# Patches\nThe problem has been patched in [v7.8.0](https://github.com/inveniosoftware/invenio-communities/releases/tag/v7.8.0). Patches also have been backported in versions [v4.2.2](https://github.com/inveniosoftware/invenio-communities/tree/v4.2.2) and [v2.8.11](https://github.com/inveniosoftware/invenio-communities/tree/v2.8.11).\n\n# Credits\n\nThanks to [Twitter.com/AliGoodLuck11](https://x.com/AliGoodLuck11)  for reporting the vulnerability with a detailed description on how to reproduce it!\n\n# For more information\nIf you have any questions or comments about this advisory:\n\nEmail us at [info@inveniosoftware.org](mailto:info@inveniosoftware.org)","ecosystems":["PyPI"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Invenio-Communities has a Cross-Site Scripting (XSS) vulnerability in React components","id":"GHSA-hjx6-f647-mvf9","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":6,"n_references":null,"packages":[{"ecosystem":"PyPI","fixed":["2.8.11"],"introduced":["0"],"last_affected":[],"package":"invenio-communities","purl":null,"source":"GHSA-hjx6-f647-mvf9"},{"ecosystem":"PyPI","fixed":["2.8.11"],"introduced":["0"],"last_affected":[],"package":"invenio-communities","purl":"pkg:pypi/invenio-communities","source":"GHSA-hjx6-f647-mvf9"},{"ecosystem":"PyPI","fixed":["4.2.2"],"introduced":["3.0.0"],"last_affected":[],"package":"invenio-communities","purl":null,"source":"GHSA-hjx6-f647-mvf9"},{"ecosystem":"PyPI","fixed":["4.2.2"],"introduced":["3.0.0"],"last_affected":[],"package":"invenio-communities","purl":"pkg:pypi/invenio-communities","source":"GHSA-hjx6-f647-mvf9"},{"ecosystem":"PyPI","fixed":["7.8.0"],"introduced":["5.0.0"],"last_affected":[],"package":"invenio-communities","purl":null,"source":"GHSA-hjx6-f647-mvf9"},{"ecosystem":"PyPI","fixed":["7.8.0"],"introduced":["5.0.0"],"last_affected":[],"package":"invenio-communities","purl":"pkg:pypi/invenio-communities","source":"GHSA-hjx6-f647-mvf9"}],"products":null,"published":"2024-06-12","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can inject scripts via affiliation fields to steal cookies from users viewing community members, requiring an upgrade to patched versions.","url":"https://insights.sbomify.com/GHSA-hjx6-f647-mvf9/"}