{"answers":{"affected":"6 open source packages ship an affected version, including @adonisjs/http-server and @adonisjs/core. It affects 2 products.","exploited":"There is no known exploitation of CVE-2026-40255 in the wild and no public exploit code.","fix":"Upgrade @adonisjs/http-server to a fixed version for your release line: 7.8.1 or 8.2.0.","what":"CVE-2026-40255 is a medium-severity vulnerability in adonisjs http-core, published on 16 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-40255 and fix it if it is affected.\n\nWhat it is: CVE-2026-40255 is a medium-severity vulnerability in adonisjs http-core, published on 16 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-40255 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @adonisjs/http-server (npm): affected all versions; fixed in 7.8.1\n- @adonisjs/http-server (npm): affected all versions; fixed in 7.8.1\n- @adonisjs/http-server (npm): affected from 8.0.0-next.0; fixed in 8.2.0\n- @adonisjs/http-server (npm): affected from 8.0.0-next.0; fixed in 8.2.0\n- @adonisjs/core (npm): affected all versions; fixed in 7.3.1\n- @adonisjs/core (npm): affected all versions; fixed in 7.3.1\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-2026-40255/ (Markdown: https://insights.sbomify.com/CVE-2026-40255/index.md)","id":"CVE-2026-40255","markdown":"https://insights.sbomify.com/CVE-2026-40255/index.md","name":"CVE-2026-40255","record":{"aliases":["GHSA-6qvv-pj99-48qm"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"AdonisJS HTTP Server","requires_auth":"none","summary":"Attackers can redirect users to malicious sites via unvalidated Referer headers in AdonisJS HTTP Server redirect methods.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"core","vendor":"adonisjs"},{"product":"http-server","vendor":"adonisjs"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"AdonisJS HTTP Server is a package for handling HTTP requests in the AdonisJS framework. In @adonisjs/http-server versions prior to 7.8.1 and 8.0.0-next.0 through 8.1.3, and @adonisjs/core versions prior to 7.4.0, the response.redirect().back() method reads the Referer header from the incoming HTTP request and redirects to that URL without validating the host.An attacker who can influence the Referer header can cause the application to redirect users to a malicious external site. This affects all AdonisJS applications that use response.redirect().back() or response.redirect('back'). This issue has been fixed in versions 7.8.1 and 8.2.0 and 7.4.0 of @adonisjs/core.","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":"@adonisjs/http-server has an Open Redirect vulnerability","id":"CVE-2026-40255","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"open_redirect","year":"2026"},"n_packages":6,"n_references":4,"next":{"headline":"Weblate: Prefix-Based Repository Boundary Check Bypass via Symlink/Junction Path Prefix Collision","id":"CVE-2026-40256"},"packages":[{"ecosystem":"npm","fixed":["7.3.1"],"introduced":["0"],"last_affected":[],"package":"@adonisjs/core","purl":null,"source":"GHSA-6qvv-pj99-48qm"},{"ecosystem":"npm","fixed":["7.3.1"],"introduced":["0"],"last_affected":[],"package":"@adonisjs/core","purl":"pkg:npm/%40adonisjs/core","source":"GHSA-6qvv-pj99-48qm"},{"ecosystem":"npm","fixed":["7.8.1"],"introduced":["0"],"last_affected":[],"package":"@adonisjs/http-server","purl":null,"source":"GHSA-6qvv-pj99-48qm"},{"ecosystem":"npm","fixed":["7.8.1"],"introduced":["0"],"last_affected":[],"package":"@adonisjs/http-server","purl":"pkg:npm/%40adonisjs/http-server","source":"GHSA-6qvv-pj99-48qm"},{"ecosystem":"npm","fixed":["8.2.0"],"introduced":["8.0.0-next.0"],"last_affected":[],"package":"@adonisjs/http-server","purl":null,"source":"GHSA-6qvv-pj99-48qm"},{"ecosystem":"npm","fixed":["8.2.0"],"introduced":["8.0.0-next.0"],"last_affected":[],"package":"@adonisjs/http-server","purl":"pkg:npm/%40adonisjs/http-server","source":"GHSA-6qvv-pj99-48qm"}],"prev":{"headline":"FreeRDP: contains_dotdot() off-by-one allows drive channel path traversal via terminal ..","id":"CVE-2026-40254"},"products":["http-core","http-server"],"published":"2026-04-16","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":"2026-04-17","vendors":["adonisjs"]},"summary":"Attackers can redirect users to malicious sites via unvalidated Referer headers in AdonisJS HTTP Server redirect methods.","url":"https://insights.sbomify.com/CVE-2026-40255/"}