{"answers":{"affected":"2 open source packages ship an affected version, including basic-auth-connect. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-47178 in the wild and no public exploit code.","fix":"Upgrade basic-auth-connect to 1.1.0 or later.","what":"CVE-2024-47178 is a high-severity vulnerability in expressjs basic-auth-connect, published on 30 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-47178 and fix it if it is affected.\n\nWhat it is: CVE-2024-47178 is a high-severity vulnerability in expressjs basic-auth-connect, published on 30 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-47178 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- basic-auth-connect (npm): affected all versions; fixed in 1.1.0\n- basic-auth-connect (npm): affected all versions; fixed in 1.1.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/CVE-2024-47178/ (Markdown: https://insights.sbomify.com/CVE-2024-47178/index.md)","id":"CVE-2024-47178","markdown":"https://insights.sbomify.com/CVE-2024-47178/index.md","name":"CVE-2024-47178","record":{"aliases":["CLSA-2026-1773533800","GHSA-7p89-p6hx-q4fw","MINI-823v-hm46-mpxf","ROOT-APP-NPM-CVE-2024-47178"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js auth middleware","requires_auth":"none","summary":"An attacker can exploit timing differences in string comparison to potentially recover authentication credentials from the basic-auth-connect middleware.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"basic-auth-connect","vendor":"expressjs"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-208","name":"Observable Timing Discrepancy"}],"description":"basic-auth-connect is Connect's Basic Auth middleware in its own module. basic-auth-connect \u003c 1.1.0 uses a timing-unsafe equality comparison that can leak timing information. This issue has been fixed in basic-auth-connect 1.1.0.","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":"basic-auth-connect's callback uses time unsafe string comparison","id":"CVE-2024-47178","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"Supply chain in RSSHub","id":"CVE-2024-47179"},"packages":[{"ecosystem":"npm","fixed":["1.1.0"],"introduced":["0"],"last_affected":[],"package":"basic-auth-connect","purl":null,"source":"GHSA-7p89-p6hx-q4fw"},{"ecosystem":"npm","fixed":["1.1.0"],"introduced":["0"],"last_affected":[],"package":"basic-auth-connect","purl":"pkg:npm/basic-auth-connect","source":"GHSA-7p89-p6hx-q4fw"}],"prev":{"headline":"cups-browsed binds to `INADDR_ANY:631`, trusting any packet from any source","id":"CVE-2024-47176"},"products":["basic-auth-connect"],"published":"2024-09-30","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":"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":"2024-09-30","vendors":["expressjs"]},"summary":"An attacker can exploit timing differences in string comparison to potentially recover authentication credentials from the basic-auth-connect middleware.","url":"https://insights.sbomify.com/CVE-2024-47178/"}