
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@cdf/cdf-ng-media
Advanced tools
CDF-NG-MEDIA is an Angular module containing UI components for displaying different forms of media (images and/or video). This module simplifies the displaying of media assets. CDF-NG-MEDIA is a UI module existing in Content Delivery Framework's eco-system.
Happy Coding!

CDF-NG-MEDIA requires the latest version of Angular (at the time of this writing: 2.4.7).
//package.json
"dependencies": {
"@angular/common": "2.4.7",
"@angular/compiler": "2.4.7",
"@angular/core": "2.4.7",
"@angular/forms": "2.4.7",
"@angular/http": "2.4.7",
"@angular/platform-browser": "2.4.7",
"@angular/platform-browser-dynamic": "2.4.7",
"@angular/router": "3.4.7"
...
}
CDF-NG-MEDIA also utilizes the following 3rd party sources:
CDF-NG-MEDIA requires a JW Player key in order for JW Player to work correctly. You will need to create an account and establish a JW Player key. You will provide the JW Player Key during configuration. See JW Player for creating an account.
//STEP 1: INSTALL CDF-NG-MEDIA
npm install @cdf/cdf-ng-media --save
...................................................
//STEP 2: create a config file (cdf-media-config.ts) to provide configuration settings:
import { ConfigInterface } from '@cdf/cdf-ng-media/lib';
export const CdfMediaConfig: ConfigInterface =
{
JwPlayerKey: 'YOUR JW PLAYER KEY'
};
...................................................
//STEP 3: configure your AppModule:
// app.module.ts
import { CdfModule } from '@cdf/cdf-ng/lib';
import { CdfMediaConfig } from './configs';
@NgModule({
declarations: [ ... ],
imports: [
...
//3rd PARTY
CdfMediaModule.forRoot(CdfMediaConfig),
],
providers: [ ... ],
bootstrap: [ ... ]
})
export class AppModule { }
CDF-NG-MEDIA containes the following models needed to show media asset(s):
CdfMediaModel is the model that contains data about the media asset (image and/or video). CdfMediaModel contains the following data points:
Id: string;
Type: string;
Title: string;
Description: string;
ImageUri: string;
YouTubeId: string;
VideoList: CdfVideoModel[] = [];
HasImage: boolean = false;
HasVideo: boolean = false;
CdfVideoModel is a placeholder data model for future development.
CDF-NG-MEDIA containes the following components you can use:
CdfMediaComponent is the base component used to display either an image or a video. CdfMediaComponent consumes CdfMediaModel which contains all the data necessary to determine if the media asset is a video or an image.
CdfMediaSliderComponent is a component handling a collection of CdfMediaModels (mix of images and/or videos). CdfMediaSliderComponent arranges the media in a grid. If one of the items is a video, then playing the video will cause an information pane to slide out showing media's title, type, description and a button to click. You can toggle on/off title, type, and description.

<cdf-media-slider [mediaModelList]="mediaModelList"
[showType]="showType"
[showTitle]="showTitle"
[showDescription]="showDescription"
(onImageClick)="doMediaClick($event)"></cdf-media-slider>
CdfVideoBackgroundComponent uses JW Player's capability to run a video contained in CdfMediaModel in the background.
Tom Schreck – @tschreck – tom_schreck@solutiaconsulting.com
FAQs
Angular module for displaying media assets (images, videos)
We found that @cdf/cdf-ng-media demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.