CVE-2023-48711 Server-Side Request Forgery (SSRF) Vulnerability in google-translate-api-browser
Attackers can exploit unsanitized input to force the library to make requests to internal network resources, potentially leading to data exposure or further exploitation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-48711?
CVE-2023-48711 is a low-severity server-side request forgery vulnerability in cjvnjde google-translate-api-browser, published on 24 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
google-translate-api-browser is an npm package which interfaces with the google translate web api. A Server-Side Request Forgery (SSRF) Vulnerability is present in applications utilizing the `google-translate-api-browser` package and exposing the `translateOptions` to the end user. An attacker can set a malicious `tld`, causing the application to return unsafe URLs pointing towards local resources. The `translateOptions.tld` field is not properly sanitized before being placed in the Google translate URL. This can allow an attacker with control over the `translateOptions` to set the `tld` to a payload such as `@127.0.0.1`. This causes the full URL to become `https://[email protected]/...`, where `translate.google.` is the username used to connect to localhost. An attacker can send requests within internal networks and the local host. Should any HTTPS application be present on the internal network with a vulnerability exploitable via a GET call, then it would be possible to exploit this using this vulnerability. This issue has been addressed in release version 4.1.3. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Weakness: CWE-918
Which versions are affected by CVE-2023-48711?
2 open source packages ship an affected version, including google-translate-api-browser. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
google-translate-api-browser npm | All versions | 4.1.0 |
google-translate-api-browser npm | All versions | 4.1.0 |
Products include Cjvnjde Google Translate Api Browser.
How do I fix CVE-2023-48711?
Upgrade google-translate-api-browser to 4.1.0 or later.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2023-48711 being exploited?
There is no known exploitation of CVE-2023-48711 in the wild and no public exploit code.
Sources
Also known as GHSA-4233-7q5q-m7p6.