{"answers":{"affected":"1 open source package ship an affected version, including Cabal.","exploited":"There is no known exploitation of HSEC-2026-0006 in the wild and no public exploit code.","fix":"No fix has been published for HSEC-2026-0006 yet. Limit exposure of the affected software until one is available.","what":"HSEC-2026-0006 is a denial of service vulnerability in Cabal, published on 8 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for HSEC-2026-0006 and fix it if it is affected.\n\nWhat it is: HSEC-2026-0006 is a denial of service vulnerability in Cabal, published on 8 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of HSEC-2026-0006 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- Cabal (Hackage): affected from 2.2; no fix listed\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/HSEC-2026-0006/ (Markdown: https://insights.sbomify.com/HSEC-2026-0006/index.md)","id":"HSEC-2026-0006","markdown":"https://insights.sbomify.com/HSEC-2026-0006/index.md","name":"HSEC-2026-0006","record":{"aliases":[],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["data_modify","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Haskell build tool","requires_auth":"none","summary":"Cabal build tool deletes source header files during configuration, causing data loss and build failures for developers.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"# Cabal deletes project source files during configure\n\nThe `checkDuplicateHeaders` function in `Distribution.Simple.Configure` removes\nheader files from the source directory when a header with the same name exists in\nboth the build directory and the source directory.\n\nThis behavior was introduced in commit `3a9830b` to resolve header precedence\nissues, as C compilers prefer relative includes over `-I` search paths. The\nworkaround uses `removeFile` on source directory files, which is destructive and\nshould not happen during a build process.\n\nWhile the current implementation does not follow symlinks explicitly, the\ndeletion of source files outside of the project  during a build operation is\npossible on Microsoft Windows.","ecosystems":["Hackage"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":false,"headline":"Cabal deletes project source files during configure","id":"HSEC-2026-0006","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":null,"product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":1,"n_references":null,"packages":[{"ecosystem":"Hackage","fixed":[],"introduced":["2.2"],"last_affected":[],"package":"Cabal","purl":"pkg:hackage/Cabal","source":"HSEC-2026-0006"}],"products":null,"published":"2026-04-08","related":[],"sources":[{"class":"open","licence":"CC0 1.0","name":"Haskell Security Response Team","prefix":"HSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Cabal build tool deletes source header files during configuration, causing data loss and build failures for developers.","url":"https://insights.sbomify.com/HSEC-2026-0006/"}