{"answers":{"affected":"6 open source packages ship an affected version, including @angular/core. It affects 2 products.","exploited":"There is no known exploitation of CVE-2021-4231 in the wild and no public exploit code.","fix":"Upgrade @angular/core to a fixed version for your release line: 10.2.5, 11.0.5 or 11.1.0-next.3.","what":"CVE-2021-4231 is a low-severity cross-site scripting vulnerability in unspecified Angular, published on 26 May 2022. 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-2021-4231 and fix it if it is affected.\n\nWhat it is: CVE-2021-4231 is a low-severity cross-site scripting vulnerability in unspecified Angular, published on 26 May 2022. 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-2021-4231 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @angular/core (npm): affected all versions; fixed in 10.2.5\n- @angular/core (npm): affected all versions; fixed in 10.2.5\n- @angular/core (npm): affected from 11.0.0; fixed in 11.0.5\n- @angular/core (npm): affected from 11.0.0; fixed in 11.0.5\n- @angular/core (npm): affected from 11.1.0-next.0; fixed in 11.1.0-next.3\n- @angular/core (npm): affected from 11.1.0-next.0; fixed in 11.1.0-next.3\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-2021-4231/ (Markdown: https://insights.sbomify.com/CVE-2021-4231/index.md)","id":"CVE-2021-4231","markdown":"https://insights.sbomify.com/CVE-2021-4231/index.md","name":"CVE-2021-4231","record":{"aliases":["CLSA-2026-1775176151","CLSA-2026-1775176154","CLSA-2026-1780707086","CLSA-2026-1783213293","CLSA-2026-1792161091","CLSA-2026-1792161093","CLSA-2026-1792161247","CLSA-2026-1792163477","CLSA-2026-1792163480","CLSA-2026-1792163638","CLSA-2026-1792208144","CLSA-2026-1792208452","CLSA-2026-1792208453","CLSA-2026-1792250472","CLSA-2026-1792250474","CLSA-2026-1792250532","CLSA-2026-1792281146","CLSA-2026-1792281699","CLSA-2026-1792281701","CLSA-2026-1792325299","CLSA-2026-1792325928","CLSA-2026-1792326048","CLSA-2026-1792345629","CLSA-2026-1792345631","CLSA-2026-1792345761","CLSA-2026-1792357306","CLSA-2026-1792357763","CLSA-2026-1792357765","CLSA-2026-1792366590","CLSA-2026-1792366876","CLSA-2026-1792366878","CLSA-2026-1792371581","CLSA-2026-1792372033","CLSA-2026-1792375681","CLSA-2026-1792376051","CLSA-2026-1792376081","CLSA-2026-1792380013","CLSA-2026-1792380381","CLSA-2026-1792380402","CLSA-2026-1792382626","CLSA-2026-1792382905","CLSA-2026-1792382906","CLSA-2026-1792386046","CLSA-2026-1792386111","CLSA-2026-1792386413","GHSA-c75v-2vq8-878f"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Angular JavaScript framework","requires_auth":"low_privilege","summary":"Remote attackers can execute arbitrary scripts via comment handling in Angular, potentially compromising user sessions or data.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"angular","vendor":"angular"},{"product":"angularjs","vendor":"angularjs"}],"cvss":{"score":3.5,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"A vulnerability was found in Angular up to 11.0.4/11.1.0-next.2. It has been classified as problematic. Affected is the handling of comments. The manipulation leads to cross site scripting. It is possible to launch the attack remotely but it might require an authentication first. Upgrading to version 11.0.5 and 11.1.0-next.3 is able to address this issue. The name of the patch is ba8da742e3b243e8f43d4c63aa842b44e14f2b09. It is recommended to upgrade the affected component.","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":"Angular Comment cross site scripting","id":"CVE-2021-4231","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2021"},"n_packages":6,"n_references":4,"next":{"headline":"Zoo Management System manage-ticket.php cross site scripting","id":"CVE-2021-4232"},"packages":[{"ecosystem":"npm","fixed":["10.2.5"],"introduced":["0"],"last_affected":[],"package":"@angular/core","purl":null,"source":"GHSA-c75v-2vq8-878f"},{"ecosystem":"npm","fixed":["10.2.5"],"introduced":["0"],"last_affected":[],"package":"@angular/core","purl":"pkg:npm/%40angular/core","source":"GHSA-c75v-2vq8-878f"},{"ecosystem":"npm","fixed":["11.0.5"],"introduced":["11.0.0"],"last_affected":[],"package":"@angular/core","purl":null,"source":"GHSA-c75v-2vq8-878f"},{"ecosystem":"npm","fixed":["11.0.5"],"introduced":["11.0.0"],"last_affected":[],"package":"@angular/core","purl":"pkg:npm/%40angular/core","source":"GHSA-c75v-2vq8-878f"},{"ecosystem":"npm","fixed":["11.1.0-next.3"],"introduced":["11.1.0-next.0"],"last_affected":[],"package":"@angular/core","purl":null,"source":"GHSA-c75v-2vq8-878f"},{"ecosystem":"npm","fixed":["11.1.0-next.3"],"introduced":["11.1.0-next.0"],"last_affected":[],"package":"@angular/core","purl":"pkg:npm/%40angular/core","source":"GHSA-c75v-2vq8-878f"}],"prev":{"headline":"Airfield Online MySQL Backup improper authentication","id":"CVE-2021-4230"},"products":["Angular"],"published":"2022-05-26","related":[{"cvss_score":8.8,"headline":"Angular: Cache-Key Ambiguity in HttpTransferCache Leading to Cross-Request Response Reuse and State Poisoning","id":"CVE-2026-68945","kev_date_added":null,"published":"2026-08-03"},{"cvss_score":8.8,"headline":"Angular: SSRF via Hostname Hijacking in @angular/platform-server","id":"CVE-2026-46417","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":8.8,"headline":"Angular: URL Parser Differential in @angular/platform-server leading to SSRF Allowlist Bypass","id":"CVE-2026-50168","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":8.8,"headline":"Angular: Weak 32-Bit Cache Key Hashing in `HttpTransferCache` Leading to Cross-Request Data Leakage and State Poisoning","id":"CVE-2026-54266","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":8.7,"headline":"Angular: SSRF via protocol-relative and backslash URLs in Angular Platform-Server","id":"CVE-2026-41423","kev_date_added":null,"published":"2026-05-08"},{"cvss_score":8.6,"headline":"Angular: SSRF and Cross-Origin Credential Disclosure via URL Resolution Discrepancy in SSR","id":"CVE-2026-88056","kev_date_added":null,"published":"2026-09-10"},{"cvss_score":8.6,"headline":"Angular: SSR XSS via Unescaped Processing Instruction (\u003c?...?\u003e) Nodes in Fallback Raw-Content Elements","id":"CVE-2026-88058","kev_date_added":null,"published":"2026-09-10"}],"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":"US public information, NVD API terms","name":"NVD"},{"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":"2025-04-15","vendors":["unspecified"]},"summary":"Remote attackers can execute arbitrary scripts via comment handling in Angular, potentially compromising user sessions or data.","url":"https://insights.sbomify.com/CVE-2021-4231/"}