GitHub Advisoryadvisory · npm
GHSA-6cf6-8hvr-r68w dectalk-tts Uses Unencrypted HTTP Request
HIGH
Official page ↗
- Aliases
- CVE-2024-31206
- Ecosystem
- npm
- Packages
- dectalk-tts
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
- Weaknesses
- CWE-300, CWE-319, CWE-598
- Reviewed
- 2024-04-04
Affected packages
• npm dectalk-tts: >= 1.0.0, < 1.0.1 → fixed in 1.0.1
Description
Impact
In `[email protected]`, network requests to the third-party API are sent over HTTP, which is unencrypted. Unencrypted traffic can be easily intercepted and modified by attackers. Anyone who uses the package could be the victim of a man-in-the-middle (MITM) attack.
Theft
Because `dectalk-tts` is a text-to-speech package, user requests are expected to only contain natural language. The package README warns that user input is sent to a third-party API, so users should not send sensitive information regardless.
But if users ignore the warnings and send sensitive information anyway, that information could be stolen by attackers.
Modification
Attackers could manipulate requests to the API. However, the worst a modified request could do is return an incorrect audio file or bad request rejection.
Attackers could also manipulate responses from the API, returning malicious output to the user. Output is expected to be a wav-encoded buffer, which users will likely save to a file. This could be a dangerous entrypoint to the user's filesystem.
Patches
The network request was upgraded to HTTPS in version `1.0.1`. No other changes were made, so updating is risk-free.
Workarounds
There are no workarounds, but here are some precautions:
• Do not send any sensitive information.
• Carefully verify the API response before saving it.
References
Vulnerable code
Original report
Patch pull request
Related
Alias · CVE (1)
- CVE-2024-31206 dectalk-tts is a Node package to interact with the aeiou Dectalk web API. vulnerability
References
- https://github.com/JstnMcBrd/dectalk-tts/security/advisories/GHSA-6cf6-8hvr-r68w web
- https://nvd.nist.gov/vuln/detail/CVE-2024-31206 advisory
- https://github.com/JstnMcBrd/dectalk-tts/issues/3 web
- https://github.com/JstnMcBrd/dectalk-tts/pull/4 web
- https://github.com/JstnMcBrd/dectalk-tts/commit/3600d8ac156f27da553ac4ead46d16989a350105 web
- https://github.com/JstnMcBrd/dectalk-tts package
- https://github.com/JstnMcBrd/dectalk-tts/blob/b3e92156cbb699218ac9b9c7d8979abd0e635767/src/index.ts#L18 web