{"answers":{"affected":"2 open source packages ship an affected version, including serialize-javascript.","exploited":"There is no known exploitation of CVE-2024-11831 in the wild and no public exploit code.","fix":"Upgrade serialize-javascript to 6.0.2 or later.","what":"CVE-2024-11831 is a medium-severity cross-site scripting vulnerability in .NET 6.0 on Red Hat Enterprise Linux, published on 10 Feb 2025. 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 CVE-2024-11831 and fix it if it is affected.\n\nWhat it is: CVE-2024-11831 is a medium-severity cross-site scripting vulnerability in .NET 6.0 on Red Hat Enterprise Linux, published on 10 Feb 2025. 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 CVE-2024-11831 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- serialize-javascript (npm): affected from 6.0.0; fixed in 6.0.2\n- serialize-javascript (npm): affected from 6.0.0; fixed in 6.0.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/CVE-2024-11831/ (Markdown: https://insights.sbomify.com/CVE-2024-11831/index.md)","id":"CVE-2024-11831","markdown":"https://insights.sbomify.com/CVE-2024-11831/index.md","name":"CVE-2024-11831","record":{"aliases":["DEBIAN-CVE-2024-11831","GHSA-76p7-773f-r4q5","MINI-cwg8-87xw-62h9","UBUNTU-CVE-2024-11831"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript serialization library","requires_auth":"low_privilege","summary":"Attackers can inject malicious scripts via unsanitized inputs in serialize-javascript, leading to XSS when data is deserialized by web browsers.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"A flaw was found in npm-serialize-javascript. The vulnerability occurs because the serialize-javascript module does not properly sanitize certain inputs, such as regex or other JavaScript object types, allowing an attacker to inject malicious code. This code could be executed when deserialized by a web browser, causing Cross-site scripting (XSS) attacks. This issue is critical in environments where serialized data is sent to web clients, potentially compromising the security of the website or web application using this package.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Npm-serialize-javascript: cross-site scripting (xss) in serialize-javascript","id":"CVE-2024-11831","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":2,"n_references":26,"next":{"headline":"Beaver Builder – WordPress Page Builder \u003c= 2.8.4.4 - Authenticated (Contributor+) Stored Cross-Site Scripting","id":"CVE-2024-11832"},"packages":[{"ecosystem":"npm","fixed":["6.0.2"],"introduced":["6.0.0"],"last_affected":[],"package":"serialize-javascript","purl":null,"source":"GHSA-76p7-773f-r4q5"},{"ecosystem":"npm","fixed":["6.0.2"],"introduced":["6.0.0"],"last_affected":[],"package":"serialize-javascript","purl":"pkg:npm/serialize-javascript","source":"GHSA-76p7-773f-r4q5"}],"prev":{"headline":"Cross-site scripting in Dear Flipbook – PDF Flipbook, 3D Flipbook, PDF embed, PDF viewer","id":"CVE-2024-11830"},"products":[".NET 6.0 on Red Hat Enterprise Linux","Cryostat 3","Logging Subsystem for Red Hat OpenShift","Migration Toolkit for Virtualization","OpenShift Lightspeed","OpenShift Pipelines","OpenShift Serverless","OpenShift Service Mesh 2","RHODF-4.14-RHEL-9","RHODF-4.15-RHEL-9","RHODF-4.16-RHEL-9","RHODF-4.17-RHEL-9","RHODF-4.18-RHEL-9","Red Hat 3scale API Management Platform 2","Red Hat Advanced Cluster Management for Kubernetes 2","Red Hat Advanced Cluster Security 4","Red Hat Advanced Cluster Security 4.4","Red Hat Advanced Cluster Security 4.5","Red Hat Ansible Automation Platform 2","Red Hat Ceph Storage 7","Red Hat Ceph Storage 7.1","Red Hat Ceph Storage 8","Red Hat Ceph Storage 8.1","Red Hat Ceph Storage 9","Red Hat Ceph Storage 9.0","Red Hat Data Grid 8","Red Hat Developer Hub 1","Red Hat Discovery 1","Red Hat Enterprise Linux 10","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 9","Red Hat Fuse 7","Red Hat Integration Camel K 1","Red Hat JBoss Enterprise Application Platform 7","Red Hat JBoss Enterprise Application Platform 8","Red Hat JBoss Enterprise Application Platform Expansion Pack","Red Hat OpenShift AI (RHOAI)","Red Hat OpenShift Container Platform 3.11","Red Hat OpenShift Container Platform 4","Red Hat OpenShift Dev Spaces","Red Hat OpenShift Pipelines 1.14.6","Red Hat OpenShift Pipelines 1.15","Red Hat OpenShift Pipelines 1.16","Red Hat OpenShift Pipelines 1.17","Red Hat OpenShift Pipelines 1.18.0","Red Hat OpenShift Pipelines 1.19","Red Hat OpenShift distributed tracing 3","Red Hat Process Automation 7","Red Hat Quay 3","Red Hat Satellite 6","Red Hat Single Sign-On 7","Red Hat Trusted Profile Analyzer","Red Hat build of Apache Camel - HawtIO 4","Red Hat build of Apicurio Registry 2","Red Hat build of OptaPlanner 8"],"published":"2025-02-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-27","vendors":["Red Hat"]},"summary":"Attackers can inject malicious scripts via unsanitized inputs in serialize-javascript, leading to XSS when data is deserialized by web browsers.","url":"https://insights.sbomify.com/CVE-2024-11831/"}