CVE-2022-0508: Server-Side Request Forgery in @peertube/embed-api

@peertube/embed-api Updated 02 Oct 2025

Summary

09/02/2022
Yes i
Moderate
6.5

CVE-2022-0508: Server-Side Request Forgery in @peertube/embed-api. Affects @peertube/embed-api versions < 4.1.0-rc.1. Fixed in 4.1.0-rc.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The @peertube/embed-api is an npm package that provides an API for embedding PeerTube videos on websites. It allows developers to easily integrate PeerTube videos into their applications by providing a set of functions and components. However, versions 4.0.0 and prior of this package are vulnerable to server-side request forgery (SSRF).

Vulnerability Detail

Server-side request forgery (SSRF) is a type of vulnerability that allows an attacker to make requests to internal or external resources on behalf of the server. In the case of @peertube/embed-api, this vulnerability can be exploited to perform unauthorized actions, such as accessing internal resources or making requests to external servers. This can lead to information disclosure, unauthorized access, or even remote code execution depending on the specific scenario. The vulnerability has a CVSS score of 6.5, indicating a moderate severity level.

How To Fix

Minimum fixed version

4.1.0-rc.1

This is the first release that contains the fix.

npm install @peertube/embed-api@4.1.0-rc.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update to the latest version of the package to mitigate the risk.

Conclusion

The @peertube/embed-api package versions 4.0.0 and prior are vulnerable to server-side request forgery (SSRF). It is crucial to update to version 4.1.0-rc.1 or later to mitigate the risk. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for @peertube/embed-api →

Share this vulnerability

FAQ

@peertube/embed-api is an npm package that provides an API for embedding PeerTube videos on websites. It simplifies the integration of PeerTube videos into web applications.

Server-side request forgery (SSRF) is a vulnerability that allows an attacker to make requests to internal or external resources on behalf of the server. It can lead to unauthorized access, information disclosure, or remote code execution.

This vulnerability can be exploited to perform unauthorized actions, such as accessing internal resources or making requests to external servers. The specific consequences depend on the attacker's intentions and the server's configuration.

The vulnerability has a CVSS score of 6.5, indicating a moderate severity level.

To fix this vulnerability, update the @peertube/embed-api package to version 4.1.0-rc.1 or later by running the command 'npm install @peertube/embed-api@latest'.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

4.1.0-rc.1

This is the first release that contains the fix.

npm install @peertube/embed-api@4.1.0-rc.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback