
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@it-era/ngx-safe-pipes
Advanced tools
This library provide convenient pipes to bypass Angular built-in sanitization and get rid off the `unsafe value used in a ... context`.
This library provide convenient pipes to bypass Angular built-in sanitization and get rid off the unsafe value used in a ... context
.
Install with npm :
npm i @it-era/ngx-safe-pipes
And add the NgxSafePipesModule
into the imports array of your module (containing the template to fix) :
import { NgxSafePipesModule } from '@it-era/ngx-safe-pipes';
// ...
@NgModule({
imports: [
NgxSafePipesModule,
// ...
]
})
export class YourModule { }
Usage :
<div [InnerHTML]="trustedHtml | safeHtml"></div>
Usage :
<iframe [attr.src]="trustedSrc | safeResourceUrl"></iframe>
Usage :
<script [attr.src]="trustedSrc | safeScript"></script>
Usage :
<style [attr.src]="trustedSrc | safeStyle"></style>
Usage :
<a [attr.href]="trustedHref | safeUrl"></a>
WARNING: calling thoses methods with untrusted user data exposes your application to XSS security risks!
FAQs
This library provide convenient pipes to bypass Angular built-in sanitization and get rid off the `unsafe value used in a ... context`.
The npm package @it-era/ngx-safe-pipes receives a total of 27 weekly downloads. As such, @it-era/ngx-safe-pipes popularity was classified as not popular.
We found that @it-era/ngx-safe-pipes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.