
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
A lightweight embed video player, with support for YouTube and Vimeo. Check out our online demo!
npm install --save quicktube
Is really simple. Just add the video ID to data-quicktube='{video-id}'
and data-quicktube-play='{video-id}'
to the play trigger element.
<div class="quicktube" data-quicktube="k6QanQUaDOo">
<div class="quicktube__video" data-quicktube-video></div>
<div data-quicktube-play="k6QanQUaDOo" class="quicktube__poster" data-quicktube-poster>
<!-- Optional poster frame image -->
<img class="quicktube__poster-image" src="/path/to/image" />
<button class="quicktube__play quicktube__btn">
Play
</button>
</div>
</div>
Initialise quicktube.
import quicktube from 'quicktube';
document.addEventListener('DOMContentLoaded', () => {
quicktube.init();
}, false);
:warning: Don't forget to include the necessary CSS, as well as the required polyfills should your environment require it.
You can hook to the play
and pause
events like this:
window.addEventListener('quicktube:play', () => {
showingItem.style.display = 'block';
}, false);
window.addEventListener('quicktube:pause', () => {
showingItem.style.display = 'none';
}, false);
Quicktube's code relies on the YouTube and Vimeo APIs (depending on which provider is used), for which origins need to be whitelisted in order to work with CSP.
For YouTube, whitelist the following:
# As script-src:
https://www.youtube.com
https://s.ytimg.com
# As frame-src:
https://www.youtube.com
And for Vimeo:
# As script-src:
https://player.vimeo.com
# As `frame-src:
https://player.vimeo.com
Note that the following are based on origins of the API scripts, and (undocumented) origins loaded by those scripts, as observed on our online demo.
Clone the project on your computer, and install Node. This project also uses nvm.
nvm install
# Then, install all project dependencies.
npm install
package.json
, following semver.npm run dist
# Use irish-pub to check the package content. Install w/ npm install -g first.
irish-pub
npm publish
FAQs
A lightweight embed video player, with support for YouTube and Vimeo
The npm package quicktube receives a total of 0 weekly downloads. As such, quicktube popularity was classified as not popular.
We found that quicktube demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.