YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
TensorFlow.js Model File Vulnerability PoC
Vulnerability
Prototype Pollution, Path Traversal, and OOM in TensorFlow.js model files
Files
poc_prototype_pollution.jsonโ proto keys in model config for JS prototype pollutionpoc_path_traversal.jsonโ Weight paths with ../../ traversal to read arbitrary filespoc_oom_weights.jsonโ 10 tensors claiming [100K, 100K] float32 each = 400GB totalbenign_model.jsonโ Clean model for comparison
Reproduce
const tf = require('@tensorflow/tfjs-node');
// Prototype pollution:
const model = await tf.loadLayersModel('file://./poc_prototype_pollution.json');
// Path traversal:
const model2 = await tf.loadLayersModel('file://./poc_path_traversal.json');
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support