{"id":"CVE-2026-40255","revision":null,"records":[{"revision":"0b6c16c57aad4445b2ed809cc99ff407","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-40255","aliases":[],"title":"@adonisjs/http-server has an Open Redirect vulnerability","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.","state":0,"publishedAt":"2026-04-16T22:25:38.155+00:00","modifiedAt":"2026-04-17T18:43:10.697+00:00","affected":[{"ecosystem":"Vendor product","name":"http-server","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"adonisjs\",\n                    \"product\": \"http-server\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 8.0.0-next.0, < 8.2.0\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"< 7.8.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"http-core","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"adonisjs\",\n                    \"product\": \"http-core\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 7.4.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"severity":"MEDIUM"}],"references":["https://github.com/adonisjs/http-server/security/advisories/GHSA-6qvv-pj99-48qm","https://github.com/adonisjs/http-server/commit/2008fb6cf4f6f1c0ca5797d57def4d93e1c3de08","https://github.com/adonisjs/http-server/releases/tag/v7.8.1","https://github.com/adonisjs/http-server/releases/tag/v8.2.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-40255","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-40255","identifiers":["CVE-2026-40255"]},"retained":false,"historicalAffected":[]},{"revision":"ce39e86e08af4556b60d59df2fd308cf","observedAt":"2026-11-07T08:36:53.836+00:00","statement":{"source":"euvd","id":"EUVD-2026-23320","aliases":["CVE-2026-40255","GHSA-6qvv-pj99-48qm"],"title":"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().bac…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"severity":null}],"references":["https://github.com/adonisjs/http-server/security/advisories/GHSA-6qvv-pj99-48qm","https://github.com/adonisjs/http-server/commit/2008fb6cf4f6f1c0ca5797d57def4d93e1c3de08","https://github.com/adonisjs/http-server/releases/tag/v7.8.1","https://github.com/adonisjs/http-server/releases/tag/v8.2.0"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-23320","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Apr 16, 2026, 10:25:38 PM","dateUpdated":"Apr 17, 2026, 6:43:10 PM"},"relatedAdvisories":[{"id":"msrc_CVE-2026-40255","title":"@adonisjs/http-server has an Open Redirect vulnerability","vulnerabilityIds":["CVE-2026-40255"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-23320","identifiers":["EUVD-2026-23320","CVE-2026-40255","GHSA-6qvv-pj99-48qm"]},"retained":false,"historicalAffected":[]},{"revision":"0a6ec12e6a9d4f2ca8e22c094e7993ef","observedAt":"2026-10-27T10:09:56.341+00:00","statement":{"source":"nvd","id":"CVE-2026-40255","aliases":[],"title":"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().bac…","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.","state":0,"publishedAt":"2026-04-16T23:16:33.267+00:00","modifiedAt":"2026-10-26T00:10:00.15+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"severity":"MEDIUM"}],"references":["https://github.com/adonisjs/http-server/commit/2008fb6cf4f6f1c0ca5797d57def4d93e1c3de08","https://github.com/adonisjs/http-server/releases/tag/v7.8.1","https://github.com/adonisjs/http-server/releases/tag/v8.2.0","https://github.com/adonisjs/http-server/security/advisories/GHSA-6qvv-pj99-48qm"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-40255","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-601"],"productCriteria":["cpe:2.3:a:adonisjs:http-server:*:*:*:*:*:node.js:*:*","cpe:2.3:a:adonisjs:core:*:*:*:*:*:node.js:*:*"],"sourceDates":{"published":"2026-04-16T23:16:33.267","lastModified":"2026-10-26T00:10:00.150"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-40255","identifiers":["CVE-2026-40255"]},"retained":false,"historicalAffected":[]},{"revision":"d7ea8dad73e34b908575da97dd1ac624","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-6qvv-pj99-48qm","aliases":["CVE-2026-40255"],"title":"@adonisjs/http-server has an Open Redirect vulnerability","description":"### Impact\n\nThe `response.redirect().back()` method in `@adonisjs/http-server` is vulnerable to open redirects. The 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 (for example, by linking a user through an attacker-controlled page before a form submission) can cause the application to redirect users to a malicious external site.\n\nThis affects all AdonisJS applications that use `response.redirect().back()` or `response.redirect('back')`.\n\nThe vulnerability is classified as CWE-601: URL Redirection to Untrusted Site ('Open Redirect').\n\n### Patches\n\nThis has been fixed in `@adonisjs/http-server` version **8.2.0**. The `back()` method now validates the `Referer` header's host against the request's own `Host` header. Referrers from unrecognized hosts are rejected and the redirect falls back to `/` (or a developer-provided fallback URL).\n\nApplications that operate across multiple domains can configure additional trusted hosts via the `redirect.allowedHosts` option in `config/app.ts`.\n\nUsers should upgrade to `@adonisjs/http-server@^8.2.0` (or `@adonisjs/core@^7.4.0` if using the core meta-package).\n\n### Workarounds\n\nIf upgrading is not immediately possible, avoid using `response.redirect().back()` in routes that are reachable by unauthenticated users or from pages that accept external traffic. Instead, redirect to a known safe path explicitly using `response.redirect().toPath('/dashboard')`.\n\n### References\n\n- [CWE-601: URL Redirection to Untrusted Site](https://cwe.mitre.org/data/definitions/601.html)\n- [OWASP: Unvalidated Redirects and Forwards](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html)","state":0,"publishedAt":"2026-04-14T20:01:28+00:00","modifiedAt":"2026-05-05T16:02:42.354824+00:00","affected":[{"ecosystem":"npm","name":"@adonisjs/http-server","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"8.0.0-next.0"},{"kind":"fixed","version":"8.2.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@adonisjs/core","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"7.3.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@adonisjs/http-server","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"7.8.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/adonisjs/http-server/security/advisories/GHSA-6qvv-pj99-48qm","https://nvd.nist.gov/vuln/detail/CVE-2026-40255","https://github.com/adonisjs/http-server/commit/2008fb6cf4f6f1c0ca5797d57def4d93e1c3de08","https://github.com/adonisjs/http-server","https://github.com/adonisjs/http-server/releases/tag/v7.8.1","https://github.com/adonisjs/http-server/releases/tag/v8.2.0"],"sourceUrl":"https://github.com/advisories/GHSA-6qvv-pj99-48qm","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-6qvv-pj99-48qm","identifiers":["GHSA-6qvv-pj99-48qm","CVE-2026-40255"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-07T19:07:25.1127279+00:00","complete":true,"records":1769,"lastAttemptAt":"2026-11-07T19:07:25.1127279+00:00","lastSuccessAt":"2026-11-07T19:07:25.259395+00:00","error":null,"lastVerifiedAt":"2026-11-07T19:07:25.259396+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-bb5c9d5a08063ef076042e33dd72a7d0ffa4c4487efdcf3106e29ba55ec2ad57-0f6819d30115900023f4b20f99e508641b2007efdd91dc0cdc8e3f4191d4d221","complete":true,"records":420942,"lastAttemptAt":"2026-11-07T19:07:24.5330127+00:00","lastSuccessAt":"2026-11-07T19:07:24.4427471+00:00","error":null,"lastVerifiedAt":"2026-11-07T19:07:24.5330127+00:00","snapshotPublishedAt":"2026-11-07T18:20:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-05809410d082491a9e6eb58bff15758d","complete":true,"records":13633,"lastAttemptAt":"2026-11-07T19:19:28.6430553+00:00","lastSuccessAt":"2026-11-07T19:19:28.637+00:00","error":null,"lastVerifiedAt":"2026-11-07T19:19:28.637+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13685,"expectedIdentifiers":13685,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-07T19:07:25.1127279+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-07T19:07:25.1127279+00:00","lastSuccessAt":"2026-11-07T19:07:25.2602906+00:00","error":null,"lastVerifiedAt":"2026-11-07T19:07:25.2602909+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-029d4c3fa5184934830a91e59f7a88f3","complete":true,"records":13645,"lastAttemptAt":"2026-11-07T19:07:38.2251716+00:00","lastSuccessAt":"2026-11-07T19:07:38.222+00:00","error":null,"lastVerifiedAt":"2026-11-07T19:07:38.222+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13685,"expectedIdentifiers":13685,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-0eb4d6dde62dffacd040ad992d4fd5a65cd7d0dc5f5f4cfa8b41967fc6f9ca5f","complete":true,"records":9914,"lastAttemptAt":"2026-11-07T19:07:24.9680856+00:00","lastSuccessAt":"2026-11-06T20:10:36.6450506+00:00","error":null,"lastVerifiedAt":"2026-11-07T19:07:24.9680856+00:00","snapshotPublishedAt":"2026-11-06T20:02:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-fde804134ecdda0ddd5ff5c26ee1fff5a6fa659311f7ef2e51c6ad54964db0e2","complete":true,"records":1971,"lastAttemptAt":"2026-11-07T19:07:24.6882184+00:00","lastSuccessAt":"2026-11-06T19:03:17.0399903+00:00","error":null,"lastVerifiedAt":"2026-11-07T19:07:24.6882184+00:00","snapshotPublishedAt":"2026-11-06T18:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-335633e78a15c9cde10a6025895b5617717087fb945489ae7e15d377bacf34a9","complete":true,"records":3055,"lastAttemptAt":"2026-11-07T19:07:25.0706377+00:00","lastSuccessAt":"2026-11-06T16:03:00.7615789+00:00","error":null,"lastVerifiedAt":"2026-11-07T19:07:25.0706377+00:00","snapshotPublishedAt":"2026-11-06T16:02:48+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-40ad6183a951565ace1520a9b4d631e1d0bfb1d4bf7c5574c375032559f3ff53","complete":true,"records":231292,"lastAttemptAt":"2026-11-07T19:07:24.8613995+00:00","lastSuccessAt":"2026-11-07T10:29:00.4821259+00:00","error":null,"lastVerifiedAt":"2026-11-07T19:07:24.8613995+00:00","snapshotPublishedAt":"2026-11-07T09:32:47+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}