You can indeed reference a git repository with a single commit specified, like described in the npm install docs[1].
Not very user friendly, but it works.
Example:
"dependencies": { "myprivatemodule": "git+ssh://git@github.com:user/project.git#commit-hash" }