Advisory

GHSA-6cf6-8hvr-r68w

Also known as: CVE-2024-31206

Summary

dectalk-tts Uses Unencrypted HTTP Request

Details

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.

<ins>Theft</ins>

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.

<ins>Modification</ins>

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-04-04 14:21 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

dectalk-tts

npm · All systems

Affected

  • introduced 1.0.0, fixed 1.0.1 (semver)

Fixed versions

1.0.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences