ghsa-3cvr-822r-rqcc
Vulnerability from github
Published
2022-07-21 20:30
Modified
2022-07-21 20:30
Severity ?
Summary
undici before v5.8.0 vulnerable to CRLF injection in request headers
Details
Impact
It is possible to inject CRLF sequences into request headers in Undici.
```js const undici = require('undici')
const response = undici.request("http://127.0.0.1:1000", { headers: {'a': "\r\nb"} }) ```
The same applies to path
and method
Patches
Update to v5.8.0
Workarounds
Sanitize all HTTP headers from untrusted sources to eliminate \r\n
.
References
https://hackerone.com/reports/409943 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-12116
For more information
If you have any questions or comments about this advisory:
- Open an issue in undici repository
- To make a report, follow the SECURITY document
{ "affected": [ { "package": { "ecosystem": "npm", "name": "undici" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "5.8.0" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2022-31150" ], "database_specific": { "cwe_ids": [ "CWE-93" ], "github_reviewed": true, "github_reviewed_at": "2022-07-21T20:30:10Z", "nvd_published_at": "2022-07-19T21:15:00Z", "severity": "MODERATE" }, "details": "### Impact\n\nIt is possible to inject CRLF sequences into request headers in Undici.\n\n```js\nconst undici = require(\u0027undici\u0027)\n\nconst response = undici.request(\"http://127.0.0.1:1000\", {\n headers: {\u0027a\u0027: \"\\r\\nb\"}\n})\n```\n\nThe same applies to `path` and `method`\n\n### Patches\n\nUpdate to v5.8.0\n\n### Workarounds\n\nSanitize all HTTP headers from untrusted sources to eliminate `\\r\\n`.\n\n### References\n\nhttps://hackerone.com/reports/409943\nhttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-12116\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Open an issue in [undici repository](https://github.com/nodejs/undici/issues)\n* To make a report, follow the [SECURITY](https://github.com/nodejs/node/blob/HEAD/SECURITY.md) document\n", "id": "GHSA-3cvr-822r-rqcc", "modified": "2022-07-21T20:30:10Z", "published": "2022-07-21T20:30:10Z", "references": [ { "type": "WEB", "url": "https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-31150" }, { "type": "WEB", "url": "https://github.com/nodejs/undici/commit/a29a151d0140d095742d21a004023d024fe93259" }, { "type": "WEB", "url": "https://hackerone.com/reports/409943" }, { "type": "PACKAGE", "url": "https://github.com/nodejs/undici" }, { "type": "WEB", "url": "https://github.com/nodejs/undici/releases/tag/v5.8.0" }, { "type": "WEB", "url": "https://security.netapp.com/advisory/ntap-20220915-0002" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N", "type": "CVSS_V3" } ], "summary": "undici before v5.8.0 vulnerable to CRLF injection in request headers" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.