Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS02Y2Y2LThodnItcjY4d84AA6o3

dectalk-tts Uses Unencrypted HTTP Request

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:

References

Vulnerable code
Original report
Patch pull request

Permalink: https://github.com/advisories/GHSA-6cf6-8hvr-r68w
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02Y2Y2LThodnItcjY4d84AA6o3
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: 28 days ago
Updated: 27 days ago


CVSS Score: 8.2
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N

Identifiers: GHSA-6cf6-8hvr-r68w, CVE-2024-31206
References: Repository: https://github.com/JstnMcBrd/dectalk-tts
Blast Radius: 1.0

Affected Packages

npm:dectalk-tts
Dependent packages: 0
Dependent repositories: 0
Downloads: 19 last month
Affected Version Ranges: = 1.0.0
Fixed in: 1.0.1
All affected versions: 1.0.0
All unaffected versions: 1.0.1