{"id":"GHSA-882j-4vj5-7vmj","revision":null,"records":[{"revision":"5bb39522c2d8483b9b8a04df9bf3e77b","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-29042","aliases":[],"title":"Translate Cache Poisoning Vulnerability","description":"Translate is a package that allows users to convert text to different languages on Node.js and the browser. Prior to version 3.0.0, an attacker controlling the second variable of the `translate` function is able to perform a cache poisoning attack. They can change the outcome of translation requests made by subsequent users. The `opt.id` parameter allows the overwriting of the cache key. If an attacker sets the `id` variable to the cache key that would be generated by another user, they can choose the response that user gets served. Version 3.0.0 fixes this issue.","state":0,"publishedAt":"2024-03-22T16:46:21.456+00:00","modifiedAt":"2024-08-02T01:03:51.704+00:00","affected":[{"ecosystem":"Vendor product","name":"translate","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"franciscop\",\n                    \"product\": \"translate\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 3.0.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"severity":"MEDIUM"}],"references":["https://github.com/franciscop/translate/security/advisories/GHSA-882j-4vj5-7vmj","https://github.com/franciscop/translate/commit/7a2bf8b9f05f7c45c09683973ef4d8e995804aa4","https://github.com/franciscop/translate/commit/cc1ba03078102f83e0503a96f1a081489bb865d3"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-29042","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-29042","identifiers":["CVE-2024-29042"]},"retained":false,"historicalAffected":[]},{"revision":"5452a66f736f4245aea93b3b4743f710","observedAt":"2026-11-15T01:53:04.273+00:00","statement":{"source":"euvd","id":"EUVD-2024-0870","aliases":["CVE-2024-29042","GHSA-882j-4vj5-7vmj"],"title":"Translate is a package that allows users to convert text to different languages on Node.js and the browser. Prior to version 3.0.0, an attacker controlling the second variable of the `translate` function is able to perform a cache poisoning…","description":"Translate is a package that allows users to convert text to different languages on Node.js and the browser. Prior to version 3.0.0, an attacker controlling the second variable of the `translate` function is able to perform a cache poisoning attack. They can change the outcome of translation requests made by subsequent users. The `opt.id` parameter allows the overwriting of the cache key. If an attacker sets the `id` variable to the cache key that would be generated by another user, they can choose the response that user gets served. Version 3.0.0 fixes this issue.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"severity":null}],"references":["https://github.com/franciscop/translate/security/advisories/GHSA-882j-4vj5-7vmj","https://github.com/franciscop/translate/commit/7a2bf8b9f05f7c45c09683973ef4d8e995804aa4","https://github.com/franciscop/translate/commit/cc1ba03078102f83e0503a96f1a081489bb865d3"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-0870","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Mar 22, 2024, 4:46:21 PM","dateUpdated":"Aug 2, 2024, 1:03:51 AM"},"relatedAdvisories":[],"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-2024-0870","identifiers":["EUVD-2024-0870","CVE-2024-29042","GHSA-882j-4vj5-7vmj"]},"retained":false,"historicalAffected":[]},{"revision":"590263c26a2d443b9fdd097a587dfa88","observedAt":"2026-10-24T23:17:34.532+00:00","statement":{"source":"nvd","id":"CVE-2024-29042","aliases":[],"title":"Translate is a package that allows users to convert text to different languages on Node.js and the browser. Prior to version 3.0.0, an attacker controlling the second variable of the `translate` function is able to perform a cache poisoning…","description":"Translate is a package that allows users to convert text to different languages on Node.js and the browser. Prior to version 3.0.0, an attacker controlling the second variable of the `translate` function is able to perform a cache poisoning attack. They can change the outcome of translation requests made by subsequent users. The `opt.id` parameter allows the overwriting of the cache key. If an attacker sets the `id` variable to the cache key that would be generated by another user, they can choose the response that user gets served. Version 3.0.0 fixes this issue.","state":0,"publishedAt":"2024-03-22T17:15:07.99+00:00","modifiedAt":"2026-06-17T07:22:18.63+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"severity":"MEDIUM"}],"references":["https://github.com/franciscop/translate/commit/7a2bf8b9f05f7c45c09683973ef4d8e995804aa4","https://github.com/franciscop/translate/commit/cc1ba03078102f83e0503a96f1a081489bb865d3","https://github.com/franciscop/translate/security/advisories/GHSA-882j-4vj5-7vmj"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-29042","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-20"],"productCriteria":["cpe:2.3:a:francisco:translate:*:*:*:*:*:node.js:*:*"],"sourceDates":{"published":"2024-03-22T17:15:07.990","lastModified":"2026-06-17T07:22:18.630"},"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-2024-29042","identifiers":["CVE-2024-29042"]},"retained":false,"historicalAffected":[]},{"revision":"72fff36ac855495189a5a1e05439c19c","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-882j-4vj5-7vmj","aliases":["CVE-2024-29042"],"title":"Cache Poisoning Vulnerability","description":"### Summary\nAn attacker controlling the second variable of the `translate` function is able to perform a cache poisoning attack. They can change the outcome of translation requests made by subsequent users.\n\n### Details\nThe `opt.id` parameter allows the overwriting of the cache key. If an attacker sets the `id` variable to the cache key that would be generated by another user, they can choose the response that user gets served.\n\n### PoC\nTake the following simple server allowing users to supply text and the language to translate to.\n```javascript\nimport translate from \"translate\";\nimport express from 'express';\n\nconst app = express();\napp.use(express.json());\n\napp.post('/translate', async (req, res) => {\n  const { text, language } = req.body;\n  const result = await translate(text, language);\n  return res.json(result);\n});\n\nconst port = 3000;\napp.listen(port, () => {\n  console.log(`Server is running on port ${port}`);\n});\n```\n\nWe can send the following request to poison the cache:\n```\n{\"text\":\"I hate you\", \"language\":{\"to\":\"nl\",\"id\":\"undefined:en:nl:google:I love you\"}}\n```\n![Poisoning the cache](https://user-images.githubusercontent.com/44903767/285421743-ccfa3d9d-24cf-47b7-b805-0e4034cec82e.png)\n\nNow, any user that attempts to translate \"I love you\" to Dutch, will get \"I hate you\" in Dutch as the response.\n![The victim gets our poisoned data](https://user-images.githubusercontent.com/44903767/285422033-b3853ca2-8a5a-4875-91e8-ba2ef0258bc6.png)\n\n\n### Impact\nAn attacker can control the results other users may get\n","state":0,"publishedAt":"2024-03-22T16:57:21+00:00","modifiedAt":"2026-09-10T03:50:00.2411675+00:00","affected":[{"ecosystem":"npm","name":"translate","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.0.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/franciscop/translate/security/advisories/GHSA-882j-4vj5-7vmj","https://nvd.nist.gov/vuln/detail/CVE-2024-29042","https://github.com/franciscop/translate/commit/7a2bf8b9f05f7c45c09683973ef4d8e995804aa4","https://github.com/franciscop/translate/commit/cc1ba03078102f83e0503a96f1a081489bb865d3","https://github.com/franciscop/translate"],"sourceUrl":"https://github.com/advisories/GHSA-882j-4vj5-7vmj","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-882j-4vj5-7vmj","identifiers":["GHSA-882j-4vj5-7vmj","CVE-2024-29042"]},"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-16T16:54:11.8625930+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T16:54:11.862593+00:00","lastSuccessAt":"2026-11-16T16:54:15.1679284+00:00","error":null,"lastVerifiedAt":"2026-11-16T16:54:15.1679292+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-6be044d0e08779dadd136f949a536de4047af96f5d7bceb7e190ecffbb8f18ca-6361a4a75fd3fdfee91746372aa50693800dd0111cb0a6d2a07ff5d2de3d8b6d","complete":true,"records":426069,"lastAttemptAt":"2026-11-16T16:45:08.5941321+00:00","lastSuccessAt":"2026-11-16T16:45:08.4444776+00:00","error":null,"lastVerifiedAt":"2026-11-16T16:45:08.5941321+00:00","snapshotPublishedAt":"2026-11-16T16:30:03+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-b706a37df4d7494e95a3035391e7532c","complete":true,"records":13830,"lastAttemptAt":"2026-11-16T16:55:01.8968891+00:00","lastSuccessAt":"2026-11-16T16:55:01.89+00:00","error":null,"lastVerifiedAt":"2026-11-16T16:55:01.89+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13883,"expectedIdentifiers":13883,"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-16T16:54:11.8625930+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T16:54:11.862593+00:00","lastSuccessAt":"2026-11-16T16:54:15.1755705+00:00","error":null,"lastVerifiedAt":"2026-11-16T16:54:15.1755718+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-b2a2e91d2be6422bb0ca883326890b5f","complete":false,"records":13842,"lastAttemptAt":"2026-11-16T16:54:43.4530606+00:00","lastSuccessAt":"2026-11-16T16:54:43.444+00:00","error":"209 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T16:54:43.444+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13474,"expectedIdentifiers":13883,"failedIdentifiers":209},{"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-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-16T16:54:10.634016+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T16:54:10.634016+00:00","snapshotPublishedAt":"2026-11-14T13:17: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-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-16T16:45:10.9109545+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T16:45:10.9109545+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+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-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-16T16:54:11.2466029+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T16:54:11.2466029+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+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-1466638dfd53ac42f3c96c7bf46ba819e30d22c7c3e630972cca5dccc04250a6","complete":true,"records":232496,"lastAttemptAt":"2026-11-16T16:54:07.8547271+00:00","lastSuccessAt":"2026-11-16T16:54:05.70552+00:00","error":null,"lastVerifiedAt":"2026-11-16T16:54:07.8547271+00:00","snapshotPublishedAt":"2026-11-16T16:33:34+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}