{"answers":{"affected":"2 open source packages ship an affected version, including camaleon_cms.","exploited":"There is no known exploitation of GHSA-75j2-9gmc-m855 in the wild and no public exploit code.","fix":"Upgrade camaleon_cms to 2.8.2 or later.","what":"GHSA-75j2-9gmc-m855 is a cross-site scripting vulnerability in camaleon_cms, published on 25 Sep 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-75j2-9gmc-m855 and fix it if it is affected.\n\nWhat it is: GHSA-75j2-9gmc-m855 is a cross-site scripting vulnerability in camaleon_cms, published on 25 Sep 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-75j2-9gmc-m855 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- camaleon_cms (RubyGems): affected from 2.8.0; fixed in 2.8.2\n- camaleon_cms (RubyGems): affected from 2.8.0; fixed in 2.8.2\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-75j2-9gmc-m855/ (Markdown: https://insights.sbomify.com/GHSA-75j2-9gmc-m855/index.md)","id":"GHSA-75j2-9gmc-m855","markdown":"https://insights.sbomify.com/GHSA-75j2-9gmc-m855/index.md","name":"GHSA-75j2-9gmc-m855","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"configuration_change","impacts":["account_takeover","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Camaleon CMS","requires_auth":"low_privilege","summary":"Authenticated users can upload malicious SVG or HTML files to execute JavaScript in other users' browsers, potentially leading to account takeover.","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":"A stored cross-site scripting has been found in the image upload functionality that can be used by normal registered users:\nIt is possible to upload a SVG image containing JavaScript and it's also possible to upload a HTML document when the format\nparameter is manually changed to [documents][1] or a string of an [unsupported format][2]. If an authenticated user or administrator visits that uploaded image or document malicious JavaScript can be executed on their behalf (e.g. changing or deleting content inside of the CMS.)\n\n[1]: https://github.com/owen2345/camaleon-cms/blob/feccb96e542319ed608acd3a16fa5d92f13ede67/app/uploaders/camaleon_cms_uploader.rb#L105-L106\n[2]: https://github.com/owen2345/camaleon-cms/blob/feccb96e542319ed608acd3a16fa5d92f13ede67/app/uploaders/camaleon_cms_uploader.rb#L110-L111\n\n## Impact\n\nThis issue may lead to account takeover due to reflected Cross-site scripting (XSS).\n\n## Remediation\n\nOnly allow the upload of safe files such as PNG, TXT and others or serve all \"unsafe\" files such as SVG and other files with a content-disposition: attachment header, which should prevent browsers from displaying them.\n\nAdditionally, a [Content security policy (CSP)][3] can be created that disallows inlined script. (Other parts of the application might need modification to continue functioning.)\n\n[3]: https://web.dev/articles/csp\n\nTo prevent the theft of the auth_token it could be marked with HttpOnly. This would however not prevent that actions could be performed as the authenticated user/administrator. Furthermore, it could make sense to use the authentication provided by Ruby on Rails, so that stolen tokens cannot be used anymore after some time.","ecosystems":["RubyGems"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Camaleon CMS vulnerable to stored XSS through user file upload (GHSL-2024-184)","id":"GHSA-75j2-9gmc-m855","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"RubyGems","fixed":["2.8.2"],"introduced":["2.8.0"],"last_affected":[],"package":"camaleon_cms","purl":null,"source":"GHSA-75j2-9gmc-m855"},{"ecosystem":"RubyGems","fixed":["2.8.2"],"introduced":["2.8.0"],"last_affected":[],"package":"camaleon_cms","purl":"pkg:gem/camaleon_cms","source":"GHSA-75j2-9gmc-m855"}],"products":null,"published":"2024-09-25","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":"Authenticated users can upload malicious SVG or HTML files to execute JavaScript in other users' browsers, potentially leading to account takeover.","url":"https://insights.sbomify.com/GHSA-75j2-9gmc-m855/"}